jbilcke-hf HF staff commited on
Commit
2bc5cf0
·
verified ·
1 Parent(s): d979b5a

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +6 -4
handler.py CHANGED
@@ -239,7 +239,7 @@ class EndpointHandler:
239
 
240
  # Initialize Varnish for post-processing
241
  self.varnish = Varnish(
242
- device="cuda" if torch.cuda.is_available() else "cpu",
243
  model_base_dir="/repository/varnish",
244
 
245
  # there is currently a bug with MMAudio and/or torch and/or the weight format and/or version..
@@ -407,9 +407,11 @@ class EndpointHandler:
407
  "output_type": "pt",
408
  "generator": generator,
409
 
410
- # VAE noise augmentation - not sure if we should expose those to the API
411
- "decode_timestep": 0.05, # Timestep for decoding noise
412
- "decode_noise_scale": 0.025, # Noise level for decoding noise
 
 
413
  }
414
  #logger.info(f"Video model generation settings:")
415
  #pprint.pprint(generation_kwargs)
 
239
 
240
  # Initialize Varnish for post-processing
241
  self.varnish = Varnish(
242
+ device="cuda", # if torch.cuda.is_available() else "cpu",
243
  model_base_dir="/repository/varnish",
244
 
245
  # there is currently a bug with MMAudio and/or torch and/or the weight format and/or version..
 
407
  "output_type": "pt",
408
  "generator": generator,
409
 
410
+ # Timestep for decoding VAE noise: the timestep at which generated video is decoded
411
+ "decode_timestep": 0.05,
412
+
413
+ # Noise level for decoding VAE noise: the interpolation factor between random noise and denoised latents at the decode timestep
414
+ "decode_noise_scale": 0.025,
415
  }
416
  #logger.info(f"Video model generation settings:")
417
  #pprint.pprint(generation_kwargs)