Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -513,7 +513,7 @@ function custom(){
|
|
513 |
# torch pipes
|
514 |
|
515 |
image_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
516 |
-
|
517 |
|
518 |
torch.cuda.empty_cache()
|
519 |
|
|
|
513 |
# torch pipes
|
514 |
|
515 |
image_pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-schnell", torch_dtype=dtype).to(device)
|
516 |
+
image_pipe.enable_model_cpu_offload()
|
517 |
|
518 |
torch.cuda.empty_cache()
|
519 |
|