royerlab / cytoself

Self-supervised models for encoding protein localization patterns from microscopy images
BSD 3-Clause "New" or "Revised" License
74 stars 15 forks source link

Reset early stop counting #31

Closed li-li-github closed 1 year ago

li-li-github commented 1 year ago

Fixed the issue of early stop resetting. Fixed the issue of Upsample no longer taking numpy.int.

codecov-commenter commented 1 year ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (9f48239) 98.38% compared to head (1b594ba) 98.39%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #31 +/- ## ======================================= Coverage 98.38% 98.39% ======================================= Files 64 64 Lines 2732 2733 +1 ======================================= + Hits 2688 2689 +1 Misses 44 44 ``` | [Flag](https://app.codecov.io/gh/royerlab/cytoself/pull/31/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/royerlab/cytoself/pull/31/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab) | `98.39% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/royerlab/cytoself/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab) | Coverage Δ | | |---|---|---| | [cytoself/trainer/autoencoder/decoders/resnet2d.py](https://app.codecov.io/gh/royerlab/cytoself/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab#diff-Y3l0b3NlbGYvdHJhaW5lci9hdXRvZW5jb2Rlci9kZWNvZGVycy9yZXNuZXQyZC5weQ==) | `97.43% <100.00%> (ø)` | | | [cytoself/trainer/basetrainer.py](https://app.codecov.io/gh/royerlab/cytoself/pull/31?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=royerlab#diff-Y3l0b3NlbGYvdHJhaW5lci9iYXNldHJhaW5lci5weQ==) | `98.75% <100.00%> (+<0.01%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.