forplaytvplus commited on
Commit
3f45c7e
1 Parent(s): ddb9a25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -135,6 +135,7 @@ def generate(
135
  pipe.load_lora_weights(lora2, adapter_name="2")
136
  pipe.set_adapters(["1", "2"], adapter_weights=[lora_scale, lora_scale2])
137
 
 
138
  pipe.enable_model_cpu_offload()
139
  generator = torch.Generator().manual_seed(seed)
140
 
 
135
  pipe.load_lora_weights(lora2, adapter_name="2")
136
  pipe.set_adapters(["1", "2"], adapter_weights=[lora_scale, lora_scale2])
137
 
138
+ reset_device_map()
139
  pipe.enable_model_cpu_offload()
140
  generator = torch.Generator().manual_seed(seed)
141