Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,6 @@ def load_and_prepare_model():
|
|
183 |
# pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
184 |
|
185 |
pipe.vae.set_default_attn_processor()
|
186 |
-
#pipe.to(device, torch.bfloat16)
|
187 |
|
188 |
#pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
|
189 |
#pipe.unet.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="unet")
|
@@ -201,8 +200,9 @@ def load_and_prepare_model():
|
|
201 |
#pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.75, 0.25, 0.5])
|
202 |
#pipe.set_adapters(["skin"], adapter_weights=[0.5])
|
203 |
#pipe.unet.set_default_attn_processor()
|
204 |
-
pipe.to(device)
|
205 |
-
pipe.to(
|
|
|
206 |
|
207 |
print(f'Pipeline: ')
|
208 |
#print(f'_optional_components: {pipe._optional_components}')
|
|
|
183 |
# pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/Fantasy_World_XL.safetensors", adapter_name="fantasy")
|
184 |
|
185 |
pipe.vae.set_default_attn_processor()
|
|
|
186 |
|
187 |
#pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", adapter_name="skin")
|
188 |
#pipe.unet.load_lora_adapter("ford442/sdxl-vae-bf16", weight_name="LoRA/skin_texture_style_v4.safetensors", prefix="unet")
|
|
|
200 |
#pipe.set_adapters(["skin", "photo", "fantasy"], adapter_weights=[0.75, 0.25, 0.5])
|
201 |
#pipe.set_adapters(["skin"], adapter_weights=[0.5])
|
202 |
#pipe.unet.set_default_attn_processor()
|
203 |
+
pipe.to(device, torch.bfloat16)
|
204 |
+
#pipe.to(device)
|
205 |
+
#pipe.to(torch.bfloat16)
|
206 |
|
207 |
print(f'Pipeline: ')
|
208 |
#print(f'_optional_components: {pipe._optional_components}')
|