Update handler.py
Browse files- 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 |
-
#
|
411 |
-
"decode_timestep": 0.05,
|
412 |
-
|
|
|
|
|
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)
|