amazonaws-sp commited on
Commit
86f2a4a
·
verified ·
1 Parent(s): 70b1c2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def generate(
52
  use_vae: bool = False,
53
  use_lora: bool = False,
54
  apply_refiner: bool = False,
55
- model = 'runwayml/stable-diffusion-v1-5',
56
  vaecall = 'stabilityai/sd-vae-ft-mse',
57
  lora = 'amazonaws-la/juliette',
58
  lora_scale: float = 0.7,
@@ -60,7 +60,7 @@ def generate(
60
  if torch.cuda.is_available():
61
 
62
  if not use_vae:
63
- pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16)
64
 
65
  if use_vae:
66
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
 
52
  use_vae: bool = False,
53
  use_lora: bool = False,
54
  apply_refiner: bool = False,
55
+ model = 'cagliostrolab/animagine-xl-3.0',
56
  vaecall = 'stabilityai/sd-vae-ft-mse',
57
  lora = 'amazonaws-la/juliette',
58
  lora_scale: float = 0.7,
 
60
  if torch.cuda.is_available():
61
 
62
  if not use_vae:
63
+ pipe = DiffusionPipeline.from_pretrained(model, torch_dtype=torch.float16)
64
 
65
  if use_vae:
66
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)