islasher commited on
Commit
523dbbb
·
verified ·
1 Parent(s): 70e61ab

Update ImageGenerator.py

Browse files
Files changed (1) hide show
  1. ImageGenerator.py +1 -1
ImageGenerator.py CHANGED
@@ -120,7 +120,7 @@ import torch
120
 
121
  model_id = "sd-legacy/stable-diffusion-v1-5"
122
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
123
- pipe = pipe.to("cuda")
124
  def generate_image(prompt):
125
  # Get the part after the dash
126
  if "-" in prompt:
 
120
 
121
  model_id = "sd-legacy/stable-diffusion-v1-5"
122
  pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
123
+ # pipe = pipe.to("cuda")
124
  def generate_image(prompt):
125
  # Get the part after the dash
126
  if "-" in prompt: