Update inference.py
Browse files- inference.py +1 -0
inference.py
CHANGED
@@ -26,6 +26,7 @@ def inference(
|
|
26 |
# If you only have CPU, consider using torch.float32 or omitting torch_dtype
|
27 |
pipe = StableDiffusionPipeline.from_pretrained(
|
28 |
model_path,
|
|
|
29 |
torch_dtype=torch.float16 if use_fp16 and torch.cuda.is_available() else torch.float32
|
30 |
)
|
31 |
|
|
|
26 |
# If you only have CPU, consider using torch.float32 or omitting torch_dtype
|
27 |
pipe = StableDiffusionPipeline.from_pretrained(
|
28 |
model_path,
|
29 |
+
subfolder="stable_diffusion-v1-4-wikiart",
|
30 |
torch_dtype=torch.float16 if use_fp16 and torch.cuda.is_available() else torch.float32
|
31 |
)
|
32 |
|