Spaces:
Runtime error
Runtime error
half precision
Browse files
model.py
CHANGED
|
@@ -9,8 +9,8 @@ import numpy as np
|
|
| 9 |
class Model:
|
| 10 |
def __init__(self):
|
| 11 |
modelID = "runwayml/stable-diffusion-v1-5"
|
| 12 |
-
|
| 13 |
-
self.pipe = StableDiffusionPipeline.from_pretrained(modelID)
|
| 14 |
#prompt = "a photo of an astronaut riding a horse on mars"
|
| 15 |
#n_prompt = "deformed, disfigured"
|
| 16 |
|
|
|
|
| 9 |
class Model:
|
| 10 |
def __init__(self):
|
| 11 |
modelID = "runwayml/stable-diffusion-v1-5"
|
| 12 |
+
pipeline = StableDiffusionPipeline.from_pretrained(modelID, torch_dtype=torch.float16)
|
| 13 |
+
#self.pipe = StableDiffusionPipeline.from_pretrained(modelID)
|
| 14 |
#prompt = "a photo of an astronaut riding a horse on mars"
|
| 15 |
#n_prompt = "deformed, disfigured"
|
| 16 |
|