Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ else:
|
|
14 |
# Load the Stable Diffusion 3.5 model with lower precision (float16)
|
15 |
model_id = "stabilityai/stable-diffusion-3.5-large"
|
16 |
pipe = StableDiffusion3Pipeline.from_pretrained(model_id, torch_dtype=torch.float16) # Use float16 precision
|
17 |
-
pipe.to("
|
18 |
|
19 |
# Define the path to the LoRA model
|
20 |
lora_model_path = "./lora_model.pth" # Assuming the file is saved locally
|
|
|
14 |
# Load the Stable Diffusion 3.5 model with lower precision (float16)
|
15 |
model_id = "stabilityai/stable-diffusion-3.5-large"
|
16 |
pipe = StableDiffusion3Pipeline.from_pretrained(model_id, torch_dtype=torch.float16) # Use float16 precision
|
17 |
+
pipe.to("cuda") # Ensuring it runs on GPU
|
18 |
|
19 |
# Define the path to the LoRA model
|
20 |
lora_model_path = "./lora_model.pth" # Assuming the file is saved locally
|