prithivMLmods commited on
Commit
b449e17
·
verified ·
1 Parent(s): 2127e69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
45
  lora_repo = "strangerzonehf/Flux-Super-Realism-LoRA"
46
  trigger_word = "Super Realism" # Leave blank if no trigger word is needed.
47
  pipe.load_lora_weights(lora_repo)
48
- pipe.to("cuda")
49
 
50
  # Define style prompts for Flux.1
51
  style_list = [
 
45
  lora_repo = "strangerzonehf/Flux-Super-Realism-LoRA"
46
  trigger_word = "Super Realism" # Leave blank if no trigger word is needed.
47
  pipe.load_lora_weights(lora_repo)
48
+ pipe.enable_model_cpu_offload() # Enable CPU offload to manage GPU memory efficiently
49
 
50
  # Define style prompts for Flux.1
51
  style_list = [