TheAIBoi commited on
Commit
e90137c
·
verified ·
1 Parent(s): ad5eb1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -15,8 +15,16 @@ if torch.cuda.is_available():
15
  else:
16
  torch_dtype = torch.float32
17
 
18
- pipe = StableDiffusionXLPipeline.from_pretrained(model_repo_id, vae=vae, torch_dtype=torch_dtype, use_safetensors=True)
19
- pipe = pipe.to(device)
 
 
 
 
 
 
 
 
20
 
21
  MAX_SEED = np.iinfo(np.int32).max
22
  MAX_IMAGE_SIZE = 4096
 
15
  else:
16
  torch_dtype = torch.float32
17
 
18
+ pipe = StableDiffusionXLPipeline.from_pretrained(
19
+ "RunDiffusion/Juggernaut-XL-v9",
20
+ vae=vae,
21
+ torch_dtype=torch.float16,
22
+ custom_pipeline="lpw_stable_diffusion_xl",
23
+ use_safetensors=True,
24
+ add_watermarker=False,
25
+ variant="fp16",
26
+ )
27
+ pipe.to(device)
28
 
29
  MAX_SEED = np.iinfo(np.int32).max
30
  MAX_IMAGE_SIZE = 4096