anky2002 commited on
Commit
617ed10
Β·
verified Β·
1 Parent(s): 1f8bf98

Upload agents/semantic_agent.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. agents/semantic_agent.py +8 -0
agents/semantic_agent.py CHANGED
@@ -160,6 +160,12 @@ DETECTION PROTOCOL:
160
  e) Verify nails are on the correct (dorsal) side of each finger.
161
  f) If hands are partially occluded, note what's visible vs. hidden.
162
 
 
 
 
 
 
 
163
  2. FACIAL SYMMETRY β€” Flag asymmetry ONLY if it would be noticeable to a casual observer at normal viewing distance. Natural faces have subtle asymmetry; AI faces often have GROSS asymmetry (one ear significantly higher/larger, one eye noticeably different shape, jawline shifted). Do NOT flag sub-pixel or barely perceptible differences.
164
 
165
  3. BODY PROPORTIONS β€” Check against standard human ratios: head β‰ˆ 1/7.5 of height, elbow at waist, fingertips at mid-thigh. Flag only OBVIOUS violations (forearm twice the length of upper arm, head clearly too large).
@@ -176,6 +182,8 @@ USR_ANATOMY = """Perform anatomical forensic analysis.
176
 
177
  MANDATORY: If hands are visible, explicitly count each finger on each hand. State your count clearly (e.g., "Left hand: thumb, index, middle, ring, pinky = 5 fingers").
178
 
 
 
179
  If NO people are visible, set contains_people=false and skip all other fields.
180
 
181
  Respond in JSON:
 
160
  e) Verify nails are on the correct (dorsal) side of each finger.
161
  f) If hands are partially occluded, note what's visible vs. hidden.
162
 
163
+ CRITICAL FINGER COUNTING RULES β€” READ CAREFULLY:
164
+ - If a hand is HOLDING AN OBJECT (glass, cup, phone, bag, food, steering wheel, tool), fingers will be wrapped around it and partially hidden. DO NOT count this as having extra fingers. Instead, note "hand partially occluded by held object" and set hands_correct=null.
165
+ - If a hand is seen at an ANGLE (foreshortened, from the side, curled into a fist), some fingers will overlap or be hidden behind others. DO NOT count overlapping fingers as extra. Set hands_correct=null and note the occlusion.
166
+ - Only flag extra/missing fingers if you can see a FULLY OPEN, SPREAD hand with MORE than 5 or FEWER than 4 clearly distinct, individually identifiable fingers.
167
+ - When in doubt about finger count due to occlusion, angle, or low resolution: set hands_correct=null, NOT false. False positives on finger counting are worse than missed detections.
168
+
169
  2. FACIAL SYMMETRY β€” Flag asymmetry ONLY if it would be noticeable to a casual observer at normal viewing distance. Natural faces have subtle asymmetry; AI faces often have GROSS asymmetry (one ear significantly higher/larger, one eye noticeably different shape, jawline shifted). Do NOT flag sub-pixel or barely perceptible differences.
170
 
171
  3. BODY PROPORTIONS β€” Check against standard human ratios: head β‰ˆ 1/7.5 of height, elbow at waist, fingertips at mid-thigh. Flag only OBVIOUS violations (forearm twice the length of upper arm, head clearly too large).
 
182
 
183
  MANDATORY: If hands are visible, explicitly count each finger on each hand. State your count clearly (e.g., "Left hand: thumb, index, middle, ring, pinky = 5 fingers").
184
 
185
+ CRITICAL: If a hand is holding something, seen at an angle, or partially hidden, set hands_correct=null and note the occlusion. Do NOT report extra fingers on occluded or foreshortened hands β€” this is the #1 source of false positives.
186
+
187
  If NO people are visible, set contains_people=false and skip all other fields.
188
 
189
  Respond in JSON: