Omnibus commited on
Commit
044a929
1 Parent(s): 8055b15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -21,6 +21,7 @@ for i,model in enumerate(models):
21
  print (loaded_model)
22
 
23
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", safety_checker=None, variant="fp16", use_safetensors=True).to("cpu")
 
24
 
25
  def load_model(model_drop):
26
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float32, use_safetensors=True)
 
21
  print (loaded_model)
22
 
23
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", safety_checker=None, variant="fp16", use_safetensors=True).to("cpu")
24
+ pipeline.unet = torch.compile(pipeline.unet)
25
 
26
  def load_model(model_drop):
27
  pipeline = AutoPipelineForImage2Image.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float32, use_safetensors=True)