Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
ssagawa committed Aug 4, 2021
1 parent 88ba842 commit 0c65eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def initialize_loss(config, d_out):
return MultiTaskLoss(loss_fn=nn.BCEWithLogitsLoss(reduction='none'))

elif config.loss_function == 'fasterrcnn_criterion':
from examples.models.detection.fasterrcnn import FasterRCNNLoss
from models.detection.fasterrcnn import FasterRCNNLoss
return ElementwiseLoss(loss_fn=FasterRCNNLoss(config.device))

else:
Expand Down

0 comments on commit 0c65eac

Please sign in to comment.