TheAIBoi commited on
Commit
52386fc
·
verified ·
1 Parent(s): 9540517

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -39,7 +39,6 @@ openpose_detector = OpenposeDetector.from_pretrained("lllyasviel/ControlNet").to
39
 
40
  try:
41
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus-face_sdxl_vit-h.safetensors")
42
- ip_adapter_loaded = true
43
  except Exception as e:
44
  print(f"Could not load IP-Adapter FaceID. Make sure the model exists and paths are correct: {e}")
45
  print("Trying a common alternative: ip-adapter-plus-face_sdxl_vit-h.safetensors")
@@ -258,7 +257,7 @@ with gr.Blocks(css=css) as demo:
258
  minimum=256,
259
  maximum=MAX_IMAGE_SIZE,
260
  step=32,
261
- value=1024,
262
  )
263
  with gr.Row():
264
  guidance_scale = gr.Slider(
@@ -273,7 +272,7 @@ with gr.Blocks(css=css) as demo:
273
  minimum=1,
274
  maximum=100, # More typical steps for SDXL (20-50 usually sufficient)
275
  step=1,
276
- value=30,
277
  )
278
  gr.Examples(examples=examples, inputs=[prompt])
279
 
 
39
 
40
  try:
41
  pipe.load_ip_adapter("h94/IP-Adapter", subfolder="sdxl_models", weight_name="ip-adapter-plus-face_sdxl_vit-h.safetensors")
 
42
  except Exception as e:
43
  print(f"Could not load IP-Adapter FaceID. Make sure the model exists and paths are correct: {e}")
44
  print("Trying a common alternative: ip-adapter-plus-face_sdxl_vit-h.safetensors")
 
257
  minimum=256,
258
  maximum=MAX_IMAGE_SIZE,
259
  step=32,
260
+ value=768,
261
  )
262
  with gr.Row():
263
  guidance_scale = gr.Slider(
 
272
  minimum=1,
273
  maximum=100, # More typical steps for SDXL (20-50 usually sufficient)
274
  step=1,
275
+ value=60,
276
  )
277
  gr.Examples(examples=examples, inputs=[prompt])
278