Datasets:

ArXiv:
diffusers-benchmarking-bot commited on
Commit
896f790
·
verified ·
1 Parent(s): fac9909

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. main/rerender_a_video.py +3 -3
main/rerender_a_video.py CHANGED
@@ -782,7 +782,7 @@ class RerenderAVideoPipeline(StableDiffusionControlNetImg2ImgPipeline):
782
  self.attn_state.reset()
783
 
784
  # 4.1 prepare frames
785
- image = self.image_processor.preprocess(frames[0]).to(dtype=torch.float32)
786
  first_image = image[0] # C, H, W
787
 
788
  # 4.2 Prepare controlnet_conditioning_image
@@ -926,8 +926,8 @@ class RerenderAVideoPipeline(StableDiffusionControlNetImg2ImgPipeline):
926
  prev_image = frames[idx - 1]
927
  control_image = control_frames[idx]
928
  # 5.1 prepare frames
929
- image = self.image_processor.preprocess(image).to(dtype=torch.float32)
930
- prev_image = self.image_processor.preprocess(prev_image).to(dtype=torch.float32)
931
 
932
  warped_0, bwd_occ_0, bwd_flow_0 = get_warped_and_mask(
933
  self.flow_model, first_image, image[0], first_result, False, self.device
 
782
  self.attn_state.reset()
783
 
784
  # 4.1 prepare frames
785
+ image = self.image_processor.preprocess(frames[0]).to(dtype=self.dtype)
786
  first_image = image[0] # C, H, W
787
 
788
  # 4.2 Prepare controlnet_conditioning_image
 
926
  prev_image = frames[idx - 1]
927
  control_image = control_frames[idx]
928
  # 5.1 prepare frames
929
+ image = self.image_processor.preprocess(image).to(dtype=self.dtype)
930
+ prev_image = self.image_processor.preprocess(prev_image).to(dtype=self.dtype)
931
 
932
  warped_0, bwd_occ_0, bwd_flow_0 = get_warped_and_mask(
933
  self.flow_model, first_image, image[0], first_result, False, self.device