Skip to content

Commit

Permalink
a quick fix of hat-hair penalty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benteng Ma committed Jul 7, 2024
1 parent 89d1c00 commit 16ff8da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def describe(self) -> dict:

if hat >= 0.25: # probably wearing hat
has_hair *= (
0.5 - hat
) * has_hair # give a penalty to the hair confidence (hope this helps!)
(0.5 - hat) / 0.5 * has_hair
) # give a penalty to the hair confidence (hope this helps!)

result = {
"has_hair": has_hair,
Expand Down

0 comments on commit 16ff8da

Please sign in to comment.