Skip to content

Commit

Permalink
enable semantic loss by default
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoyiZhu committed Mar 26, 2024
1 parent b890d36 commit 0c5af29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 15, 20, 22, 24, 25, 27, 34),
(0, 1, 4, 5, 6, 7, 8, 10, 19, 29, 30, 31, 32),
),
ppt_loss_weight=0.0,
ppt_loss_weight=1.0,
ppt_criteria=[dict(type="CrossEntropyLoss", loss_weight=1.0, ignore_index=-1)],
)

Expand Down
2 changes: 1 addition & 1 deletion ponder/models/ponder/ponder_indoor_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
clip_model=None,
class_name=None,
valid_index=None,
ppt_loss_weight=0.0, # whether and how much to use PPT's loss
ppt_loss_weight=1.0, # whether and how much to use PPT's loss
ppt_criteria=None,
):
super().__init__()
Expand Down

0 comments on commit 0c5af29

Please sign in to comment.