Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ model_id = "alaa-lab/InstructCV"
|
|
37 |
|
38 |
def main():
|
39 |
# pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cpu")
|
40 |
-
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, safety_checker=None).to("
|
41 |
example_image = Image.open("imgs/example2.jpg").convert("RGB")
|
42 |
|
43 |
|
|
|
37 |
|
38 |
def main():
|
39 |
# pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cpu")
|
40 |
+
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, safety_checker=None).to("cuda")
|
41 |
example_image = Image.open("imgs/example2.jpg").convert("RGB")
|
42 |
|
43 |
|