KingNish commited on
Commit
5c7c14b
Β·
verified Β·
1 Parent(s): 6f4969f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from diffusers import DiffusionPipeline, StableDiffusionXLPipeline, EDMEulerSche
10
  from huggingface_hub import hf_hub_download, InferenceClient
11
 
12
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
13
- pipe = StableDiffusionXLPipeline.from_pretrained("fluently/Fluently-XL-Final", torch_dtype=torch.float16, vae=vae)
14
  pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
15
  pipe.set_adapters("lora")
16
  pipe.to("cuda")
@@ -92,7 +92,6 @@ def king(type ,
92
  generator = torch.Generator().manual_seed(seed)
93
  if fast:
94
  pipes=pipe_fast
95
- steps=int(steps/4)
96
  else:
97
  pipes=pipe
98
  image = pipes( prompt = instruction,
 
10
  from huggingface_hub import hf_hub_download, InferenceClient
11
 
12
  vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
13
+ pipe = StableDiffusionXLPipeline.from_pretrained("SG161222/RealVisXL_V4.0", torch_dtype=torch.float16, vae=vae)
14
  pipe.load_lora_weights("KingNish/Better-Image-XL-Lora", weight_name="example-03.safetensors", adapter_name="lora")
15
  pipe.set_adapters("lora")
16
  pipe.to("cuda")
 
92
  generator = torch.Generator().manual_seed(seed)
93
  if fast:
94
  pipes=pipe_fast
 
95
  else:
96
  pipes=pipe
97
  image = pipes( prompt = instruction,