Yaron Koresh commited on
Commit
4e42c4b
·
verified ·
1 Parent(s): 6a56eb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- #image_pipe.enable_model_cpu_offload()
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