RamAnanth1 commited on
Commit
d796b5a
β€’
1 Parent(s): 220bb8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -206,12 +206,13 @@ def get_video_lora(prompt, seed, ddim_steps, model_choice):
206
 
207
  def get_video_control(prompt, input_video, seed, ddim_steps):
208
  seed_everything(seed)
209
- h,w = 512//8, 512//8
210
- noise_shape = [1, model.channels, model.temporal_length,h,w]
211
- batch_samples, batch_conds = adapter_guided_synthesis(model, prompt,input_video,noise_shape, sampler=ddim_sampler, n_samples = 1,
212
- ddim_steps=ddim_steps
213
- )
214
- return save_results_control(batch_samples, batch_conds)
 
215
 
216
  from gradio_t2v import create_demo as create_demo_basic
217
  from gradio_videolora import create_demo as create_demo_videolora
 
206
 
207
  def get_video_control(prompt, input_video, seed, ddim_steps):
208
  seed_everything(seed)
209
+ # h,w = 512//8, 512//8
210
+ # noise_shape = [1, model.channels, model.temporal_length,h,w]
211
+ # batch_samples, batch_conds = adapter_guided_synthesis(model, prompt,input_video,noise_shape, sampler=ddim_sampler, n_samples = 1,
212
+ # ddim_steps=ddim_steps
213
+ # )
214
+ # return save_results_control(batch_samples, batch_conds)
215
+ return input_video
216
 
217
  from gradio_t2v import create_demo as create_demo_basic
218
  from gradio_videolora import create_demo as create_demo_videolora