potatopizza commited on
Commit
888eca4
·
verified ·
1 Parent(s): 7abe400

Update inference.py

Browse files
Files changed (1) hide show
  1. 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