Upload app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,6 @@ print("SD Inpainting ready.")
|
|
| 61 |
# COLORING- IMG2IMG Pipeline
|
| 62 |
colour= StableDiffusionImg2ImgPipeline(
|
| 63 |
"runwayml/stable-diffusion-v1-5",
|
| 64 |
-
torch_dtype=torch.float16,
|
| 65 |
safety_checker=None,
|
| 66 |
requires_safety_checker=False,
|
| 67 |
)
|
|
@@ -220,7 +219,7 @@ def enhance_image(image, scale_factor):
|
|
| 220 |
|
| 221 |
@spaces.GPU
|
| 222 |
def colour_image(image, prompt, strength):
|
| 223 |
-
colour.to("cuda")
|
| 224 |
if Image is None:
|
| 225 |
raise gr.Error("Please Upload the Image")
|
| 226 |
# Convert to RGB
|
|
|
|
| 61 |
# COLORING- IMG2IMG Pipeline
|
| 62 |
colour= StableDiffusionImg2ImgPipeline(
|
| 63 |
"runwayml/stable-diffusion-v1-5",
|
|
|
|
| 64 |
safety_checker=None,
|
| 65 |
requires_safety_checker=False,
|
| 66 |
)
|
|
|
|
| 219 |
|
| 220 |
@spaces.GPU
|
| 221 |
def colour_image(image, prompt, strength):
|
| 222 |
+
colour.to("cuda", torch.float16)
|
| 223 |
if Image is None:
|
| 224 |
raise gr.Error("Please Upload the Image")
|
| 225 |
# Convert to RGB
|