DonImages commited on
Commit
2e7987e
·
verified ·
1 Parent(s): 28d2f92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("cpu") # Ensuring it runs on CPU
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