-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes a couple of issues to add fp16 training support (#488)
* Fixes a couple of issues to add fp16 training support (#476) * Add half precision support to `nanodet_plus` head Moves the explicit `sigmoid` calculation inside the `dsl_assigner` so that `binary_cross_entropy_with_logits` can be used. This allows for the use of `auto_cast` to support training with `fp16` precision. If this is not done `torch` will complain that using `binary_cross_entropy` with `fp16` is unstable and as such refuses to train the model in `fp16` precision. * Add model precision settings to config Allows for setting the model precision during training using the config system. Co-authored-by: RangiLyu <[email protected]> * fix lint * lightning version Co-authored-by: Bjarne <[email protected]>
- Loading branch information
1 parent
d8ba391
commit a59db3c
Showing
6 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters