Spaces:
Runtime error
Runtime error
LanguageBind
commited on
Update opensora/serve/gradio_web_server.py
Browse files
opensora/serve/gradio_web_server.py
CHANGED
@@ -65,9 +65,9 @@ if __name__ == '__main__':
|
|
65 |
# Load model:
|
66 |
transformer_model = LatteT2V.from_pretrained(args.model_path, subfolder=args.version, torch_dtype=torch.float16).to(device)
|
67 |
|
68 |
-
vae = getae_wrapper(args.ae)(args.model_path, subfolder="vae").to(device
|
|
|
69 |
vae.vae.enable_tiling()
|
70 |
-
vae.vae.tile_sample_min_size = 128
|
71 |
image_size = int(args.version.split('x')[1])
|
72 |
latent_size = (image_size // ae_stride_config[args.ae][1], image_size // ae_stride_config[args.ae][2])
|
73 |
vae.latent_size = latent_size
|
|
|
65 |
# Load model:
|
66 |
transformer_model = LatteT2V.from_pretrained(args.model_path, subfolder=args.version, torch_dtype=torch.float16).to(device)
|
67 |
|
68 |
+
vae = getae_wrapper(args.ae)(args.model_path, subfolder="vae").to(device)
|
69 |
+
vae = vae.half()
|
70 |
vae.vae.enable_tiling()
|
|
|
71 |
image_size = int(args.version.split('x')[1])
|
72 |
latent_size = (image_size // ae_stride_config[args.ae][1], image_size // ae_stride_config[args.ae][2])
|
73 |
vae.latent_size = latent_size
|