KingNish commited on
Commit
c9195ab
1 Parent(s): c9e95c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,8 +16,8 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
16
  dtype = torch.float16
17
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
18
 
19
- repo = "stabilityai/stable-diffusion-3-medium-diffusers"
20
- pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae).to(device)
21
 
22
  help_text = """
23
  To optimize image results:
@@ -43,7 +43,7 @@ def set_timesteps_patched(self, num_inference_steps: int, device = None):
43
  self.sigmas = self.sigmas.to("cpu")
44
 
45
  # Image Editor
46
- edit_file = hf_hub_download(repo_id="stabilityai/cosxl", filename="cosxl_edit.safetensors")
47
  EDMEulerScheduler.set_timesteps = set_timesteps_patched
48
  pipe_edit = StableDiffusionXLInstructPix2PixPipeline.from_single_file(
49
  edit_file, num_in_channels=8, is_cosxl_edit=True, vae=vae, torch_dtype=torch.float16,
 
16
  dtype = torch.float16
17
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
18
 
19
+ repo = "fluently/Fluently-XL-Final"
20
+ pipe = StableDiffusionXLPipeline.from_pretrained(repo, torch_dtype=torch.float16, vae=vae).to(device)
21
 
22
  help_text = """
23
  To optimize image results:
 
43
  self.sigmas = self.sigmas.to("cpu")
44
 
45
  # Image Editor
46
+ edit_file = hf_hub_download(repo, filename="cosxl_edit.safetensors")
47
  EDMEulerScheduler.set_timesteps = set_timesteps_patched
48
  pipe_edit = StableDiffusionXLInstructPix2PixPipeline.from_single_file(
49
  edit_file, num_in_channels=8, is_cosxl_edit=True, vae=vae, torch_dtype=torch.float16,