Spaces:
Sleeping
Sleeping
Lower fracture cross-check threshold 60->50
Browse files304 unmodified lines305306307308309310311312304 unmodified lines_SITE_METAL_FRACTION = 0.02 # ≥2% saturated-white pixels around a box → implant at the site_SITE_BOX_PAD = 0.15_SWITCH_MIN_SIGNAL = 60.0 # cross-check must be at least this confident to take over_SWITCH_MAX_PRIMARY = 50.0 # ...and the original route must be weaker than this_INACTIVE_FRACTURE_WORDS = ("prior", "healed", "possible", "old finding")304 unmodified lines305306307308309310311312313314315316317318304 unmodified lines_SITE_METAL_FRACTION = 0.02 # ≥2% saturated-white pixels around a box → implant at the site_SITE_BOX_PAD = 0.15_SWITCH_MIN_SIGNAL = 50.0 # cross-check must be at least this confident to take over_SWITCH_MAX_PRIMARY = 50.0 # ...and the original route must be weaker than this# Lowered from 60 — tested against a real client image (a stylized, heavily# colour-graded fracture photo) where the fracture classifier correctly flagged# it with real but moderate confidence while the wound classifier's own guess# was weak but nonzero. Missing a real fracture by sitting on a high bar costs# far more than occasionally cross-checking a true wound photo a bit too# eagerly, so the bar for "trust the cross-check" should lean permissive._INACTIVE_FRACTURE_WORDS = ("prior", "healed", "possible", "old finding")
app/routers/analyze.py+7-1