yijin928 commited on
Commit
1078f76
·
verified ·
1 Parent(s): d1b7f16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -211,8 +211,8 @@ def generate_video(positive_prompt, num_frames, input_image):
211
 
212
  emptylatentimage = NODE_CLASS_MAPPINGS["EmptyLatentImage"]()
213
  emptylatentimage_161 = emptylatentimage.generate(
214
- width=360, #reduce this to avoid OOM error
215
- height=240, #reduce this to avoid OOM error
216
  batch_size=1 #reduce this to avoid OOM error
217
  )
218
 
@@ -253,8 +253,8 @@ def generate_video(positive_prompt, num_frames, input_image):
253
 
254
  cogvideodecode_11 = cogvideodecode.decode(
255
  enable_vae_tiling=False,
256
- tile_sample_min_height=120,#reduce this to avoid OOM error
257
- tile_sample_min_width=180,#reduce this to avoid OOM error
258
  tile_overlap_factor_height=0.2,
259
  tile_overlap_factor_width=0.2,
260
  auto_tile_size=True,
 
211
 
212
  emptylatentimage = NODE_CLASS_MAPPINGS["EmptyLatentImage"]()
213
  emptylatentimage_161 = emptylatentimage.generate(
214
+ width=480, #reduce this to avoid OOM error
215
+ height=480, #reduce this to avoid OOM error
216
  batch_size=1 #reduce this to avoid OOM error
217
  )
218
 
 
253
 
254
  cogvideodecode_11 = cogvideodecode.decode(
255
  enable_vae_tiling=False,
256
+ tile_sample_min_height=240,#reduce this to avoid OOM error
257
+ tile_sample_min_width=240,#reduce this to avoid OOM error
258
  tile_overlap_factor_height=0.2,
259
  tile_overlap_factor_width=0.2,
260
  auto_tile_size=True,