Staticaliza commited on
Commit
736f0c9
·
verified ·
1 Parent(s): 9e7587d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -28,10 +28,10 @@ DEFAULT_WIDTH = 1024
28
 
29
  REPO = "hsalf-lxds/ytinummoc-ds"[::-1]
30
 
31
- vae = AutoencoderKL.from_pretrained("xif-61pf-eav-lxds/nilloybedam"[::-1], torch_dtype=torch.float16) # , vae=vae
32
  controlnet = ControlNetModel.from_pretrained("k031-sdnah-dedocne-tenlortnoc/naPikaM"[::-1], torch_dtype=torch.float16)
33
 
34
- model = StableDiffusionXLPipeline.from_pretrained(REPO, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
35
  model.load_lora_weights("2v-lx-3-ellad/urofotsirhe"[::-1], adapter_name="base")
36
  model.set_adapters(["base"], adapter_weights=[0.7])
37
  model.to(DEVICE)
@@ -73,7 +73,7 @@ def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=
73
  "num_inference_steps": steps,
74
  "guidance_scale": guidance,
75
  "num_images_per_prompt": number,
76
- "controlnet_conditioning_scale": 0.7,
77
  "cross_attention_kwargs": {"scale": 1},
78
  "generator": torch.Generator().manual_seed(seed),
79
  "use_resolution_binning": True,
 
28
 
29
  REPO = "hsalf-lxds/ytinummoc-ds"[::-1]
30
 
31
+ vae = AutoencoderKL.from_pretrained("xif-61pf-eav-lxds/nilloybedam"[::-1], torch_dtype=torch.float16)
32
  controlnet = ControlNetModel.from_pretrained("k031-sdnah-dedocne-tenlortnoc/naPikaM"[::-1], torch_dtype=torch.float16)
33
 
34
+ model = StableDiffusionXLPipeline.from_pretrained(REPO, vae=vae, controlnet=controlnet, torch_dtype=torch.float16, use_safetensors=True, add_watermarker=False)
35
  model.load_lora_weights("2v-lx-3-ellad/urofotsirhe"[::-1], adapter_name="base")
36
  model.set_adapters(["base"], adapter_weights=[0.7])
37
  model.to(DEVICE)
 
73
  "num_inference_steps": steps,
74
  "guidance_scale": guidance,
75
  "num_images_per_prompt": number,
76
+ "controlnet_conditioning_scale": 0.25,
77
  "cross_attention_kwargs": {"scale": 1},
78
  "generator": torch.Generator().manual_seed(seed),
79
  "use_resolution_binning": True,