Skip to content

Commit

Permalink
Update defaults.py
Browse files Browse the repository at this point in the history
add default loss function
  • Loading branch information
ricky0614 authored Dec 23, 2024
1 parent eb18286 commit 0fd37da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions detectron2/config/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,3 +654,8 @@
# Do not commit any configs into it.
_C.GLOBAL = CN()
_C.GLOBAL.HACK = 1.0

# ここから追加
_C.MODEL.ROI_HEADS.LOSS_TYPE = "bce" # "focal"または"bce"も選択可能
_C.MODEL.ROI_HEADS.FOCAL_LOSS_GAMMA = 2.0
_C.MODEL.ROI_HEADS.FOCAL_LOSS_ALPHA = 0.25

0 comments on commit 0fd37da

Please sign in to comment.