primerz commited on
Commit
dcf2365
·
verified ·
1 Parent(s): 1bdda0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -317,7 +317,7 @@ def run_lora(face_image, prompt, negative, lora_scale, selected_state, face_stre
317
  custom_lora_path = custom_lora[0] if custom_lora else None
318
  selected_state_index = selected_state.index if selected_state else -1
319
  st = time.time()
320
- face_image = center_crop_image_as_square(face_image)
321
  try:
322
  face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR))
323
  face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1] # only use the maximum face
 
317
  custom_lora_path = custom_lora[0] if custom_lora else None
318
  selected_state_index = selected_state.index if selected_state else -1
319
  st = time.time()
320
+ # face_image = center_crop_image_as_square(face_image)
321
  try:
322
  face_info = app.get(cv2.cvtColor(np.array(face_image), cv2.COLOR_RGB2BGR))
323
  face_info = sorted(face_info, key=lambda x:(x['bbox'][2]-x['bbox'][0])*x['bbox'][3]-x['bbox'][1])[-1] # only use the maximum face