Chaerin5 commited on
Commit
745cf42
·
1 Parent(s): 627ad7b

instruction renovation; allow manual keypoints at edit hands

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -314,7 +314,7 @@ def get_ref_anno(img, keypts):
314
  keypts[0] = np.array(keypts[0], dtype=np.float32)
315
  else:
316
  gr.Info("Number of right hand keypoints should be either 0 or 21.")
317
- return None, None
318
 
319
  if len(keypts[1]) == 0:
320
  keypts[1] = np.zeros((21, 2))
@@ -322,7 +322,7 @@ def get_ref_anno(img, keypts):
322
  keypts[1] = np.array(keypts[1], dtype=np.float32)
323
  else:
324
  gr.Info("Number of left hand keypoints should be either 0 or 21.")
325
- return None, None
326
 
327
  keypts = np.concatenate(keypts, axis=0)
328
  if REF_POSE_MASK:
 
314
  keypts[0] = np.array(keypts[0], dtype=np.float32)
315
  else:
316
  gr.Info("Number of right hand keypoints should be either 0 or 21.")
317
+ return None, None, None
318
 
319
  if len(keypts[1]) == 0:
320
  keypts[1] = np.zeros((21, 2))
 
322
  keypts[1] = np.array(keypts[1], dtype=np.float32)
323
  else:
324
  gr.Info("Number of left hand keypoints should be either 0 or 21.")
325
+ return None, None, None
326
 
327
  keypts = np.concatenate(keypts, axis=0)
328
  if REF_POSE_MASK: