Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
@@ -124,7 +124,9 @@ function custom(){
|
|
124 |
|
125 |
# torch pipes
|
126 |
|
127 |
-
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.
|
|
|
|
|
128 |
|
129 |
video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
130 |
"THUDM/CogVideoX-5b-I2V",
|
|
|
124 |
|
125 |
# torch pipes
|
126 |
|
127 |
+
image_pipe = FluxPipeline.from_pretrained(base, torch_dtype=torch.bfloat16).to(device)
|
128 |
+
|
129 |
+
image_pipe.enable_model_cpu_offload()
|
130 |
|
131 |
video_pipe = CogVideoXImageToVideoPipeline.from_pretrained(
|
132 |
"THUDM/CogVideoX-5b-I2V",
|