jadechoghari commited on
Commit
585063a
1 Parent(s): cc21a43

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -96,7 +96,7 @@ class VidToMePipeline(DiffusionPipeline):
96
 
97
  def _build_config(self, video_path, video_prompt, edit_prompt, control_type,
98
  n_timesteps, guidance_scale, negative_prompt, frame_range,
99
- use_lora, seed, local_merge_ratio, global_merge_ratio):
100
  # Build config using OmegaConf, abstracting as much as possible
101
  config = OmegaConf.create({
102
  'sd_version': self.sd_version, # Default sd_version
@@ -120,7 +120,7 @@ class VidToMePipeline(DiffusionPipeline):
120
  'force': False, # Default, force inversion even if latents exist
121
  },
122
  'generation': {
123
- 'control': "pnp", # Default to Plug-and-Play for generation control
124
  'pnp_attn_t': 0.5, # PnP args
125
  'pnp_f_t': 0.8, # PnP args
126
  'control_scale': 1.0, # Scale for ControlNet-like controls
 
96
 
97
  def _build_config(self, video_path, video_prompt, edit_prompt, control_type,
98
  n_timesteps, guidance_scale, negative_prompt, frame_range,
99
+ use_lora, seed, local_merge_ratio, global_merge_ratio, gen_control="none"):
100
  # Build config using OmegaConf, abstracting as much as possible
101
  config = OmegaConf.create({
102
  'sd_version': self.sd_version, # Default sd_version
 
120
  'force': False, # Default, force inversion even if latents exist
121
  },
122
  'generation': {
123
+ 'control': gen_control or "none", # Default to Plug-and-Play for generation control
124
  'pnp_attn_t': 0.5, # PnP args
125
  'pnp_f_t': 0.8, # PnP args
126
  'control_scale': 1.0, # Scale for ControlNet-like controls