Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|