Yaron Koresh commited on
Commit
3e4f13d
·
verified ·
1 Parent(s): e453455

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -113,9 +113,9 @@ video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
113
  torch_dtype=dtype
114
  ).to(device)
115
 
116
- #video_pipe.vae.enable_tiling()
117
- #video_pipe.vae.enable_slicing()
118
- #video_pipe.enable_model_cpu_offload()
119
 
120
  # functionality
121
 
@@ -181,7 +181,6 @@ def pipe_generate(img,p1,p2,time,title):
181
  num_images_per_prompt=1,
182
  num_inference_steps=image_steps,
183
  max_sequence_length=seq,
184
- need_safetycheck=False,
185
  generator=torch.Generator(device).manual_seed(int(str(random.random()).split(".")[1]))
186
  ).images[0]
187
 
 
113
  torch_dtype=dtype
114
  ).to(device)
115
 
116
+ video_pipe.vae.enable_tiling()
117
+ video_pipe.vae.enable_slicing()
118
+ video_pipe.enable_model_cpu_offload()
119
 
120
  # functionality
121
 
 
181
  num_images_per_prompt=1,
182
  num_inference_steps=image_steps,
183
  max_sequence_length=seq,
 
184
  generator=torch.Generator(device).manual_seed(int(str(random.random()).split(".")[1]))
185
  ).images[0]
186