eliphatfs
commited on
Commit
·
4dbdaec
1
Parent(s):
44a6c30
Fix.
Browse files
openshape/demo/sd_pc2img.py
CHANGED
@@ -16,7 +16,7 @@ class Wrapper(transformers.modeling_utils.PreTrainedModel):
|
|
16 |
half = torch.float16 if torch.cuda.is_available() else torch.bfloat16
|
17 |
pipe = StableUnCLIPImg2ImgPipeline.from_pretrained(
|
18 |
"diffusers/stable-diffusion-2-1-unclip-i2i-l",
|
19 |
-
torch_dtype=half,
|
20 |
image_encoder = Wrapper()
|
21 |
)
|
22 |
if torch.cuda.is_available():
|
|
|
16 |
half = torch.float16 if torch.cuda.is_available() else torch.bfloat16
|
17 |
pipe = StableUnCLIPImg2ImgPipeline.from_pretrained(
|
18 |
"diffusers/stable-diffusion-2-1-unclip-i2i-l",
|
19 |
+
torch_dtype=half, variant="fp16",
|
20 |
image_encoder = Wrapper()
|
21 |
)
|
22 |
if torch.cuda.is_available():
|