Lifeinhockey commited on
Commit
ef482c1
·
verified ·
1 Parent(s): bbeb52c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -105,7 +105,6 @@ def infer(
105
  # Генерация с Ip_Adapter
106
  if use_ip_adapter and ip_source_image is not None and ip_adapter_image is not None:
107
  pipe_ip_adapter = StableDiffusionControlNetPipeline.from_pretrained(
108
- #pipe_ip_adapter = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
109
  model_default,
110
  controlnet=controlnet,
111
  torch_dtype=torch_dtype
@@ -133,8 +132,8 @@ def infer(
133
  image=ip_adapter_image, #ip_source_image,
134
  ip_adapter_image=ip_source_image, #ip_adapter_image,
135
  strength=strength_ip,
136
- width=512, #width,
137
- height=512, #height,
138
  num_inference_steps=num_inference_steps,
139
  guidance_scale=guidance_scale,
140
  controlnet_conditioning_scale=1.0,
@@ -441,4 +440,3 @@ with gr.Blocks(css=css) as demo:
441
 
442
  if __name__ == "__main__":
443
  demo.launch()
444
-
 
105
  # Генерация с Ip_Adapter
106
  if use_ip_adapter and ip_source_image is not None and ip_adapter_image is not None:
107
  pipe_ip_adapter = StableDiffusionControlNetPipeline.from_pretrained(
 
108
  model_default,
109
  controlnet=controlnet,
110
  torch_dtype=torch_dtype
 
132
  image=ip_adapter_image, #ip_source_image,
133
  ip_adapter_image=ip_source_image, #ip_adapter_image,
134
  strength=strength_ip,
135
+ width=width,
136
+ height=height,
137
  num_inference_steps=num_inference_steps,
138
  guidance_scale=guidance_scale,
139
  controlnet_conditioning_scale=1.0,
 
440
 
441
  if __name__ == "__main__":
442
  demo.launch()