megvii-research / FSCE

Apache License 2.0
280 stars 47 forks source link

AssertionError: get_event_storage() has to be called inside a 'with EventStorage(...)' context! #9

Closed jiongchengli closed 3 years ago

jiongchengli commented 3 years ago

when evaluating the trained models...
please tell me how to solve it,thanks! image

jiongchengli commented 3 years ago

I avoid related errors by replacing the following sentences. If there is a better solution, you can tell me, thank you! (decay_rate may be 0.25)

image

image

Retiina commented 3 years ago
if self.training:
    ...
jiongchengli commented 3 years ago
if self.training:
    ...

Thank you for your answers, when evaluating the trained models, the process really has nothing to do with contrast _loss_weight

jiongchengli commented 3 years ago

image It works.