nimatov commited on
Commit
b09d218
·
verified ·
1 Parent(s): dcdcb87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def load_beat_model():
26
  # @st.cache_resource
27
  def load_image_model():
28
  torch.cuda.empty_cache()
29
- pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, revision="fp16")
30
  pipeline.to("cuda")
31
  pipeline.load_lora_weights("Weights/pytorch_lora_weights.safetensors", weight_name="pytorch_lora_weights.safetensors")
32
  return pipeline
 
26
  # @st.cache_resource
27
  def load_image_model():
28
  torch.cuda.empty_cache()
29
+ pipeline = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", variant='fp16')
30
  pipeline.to("cuda")
31
  pipeline.load_lora_weights("Weights/pytorch_lora_weights.safetensors", weight_name="pytorch_lora_weights.safetensors")
32
  return pipeline