hikvision-research / SSOD

An official implementation of CVPR 2022 paper "Label Matching Semi-Supervised Object Detection".
Apache License 2.0
140 stars 14 forks source link

The difference between online and offline version #14

Closed JCZ404 closed 1 year ago

JCZ404 commented 1 year ago

Hi, Thanks for such great work! I noticed that you implemented the offline ACT by the labelmatch_hooks, but in the configs of the online version, there still exists the 'LabelMatchHook' config. I wonder if this config of LabelMatchHook needs to be deleted in the online version. More precisely, to delete the part about evaluating with the unlabeled data and then update the threshold.

AceCoooool commented 1 year ago

The LabelMatchHook is only used as initialization in online version. (The update_interval = total_iter + 1 in online version)

JCZ404 commented 1 year ago

But the "LabelMatchHook" seems also exists in the config of the offline version, is there any difference? The only difference is the update_interval, and when setting the update_interval = total_iter + 1, the update offline will be turned off, right?

AceCoooool commented 1 year ago

offline: we use the LabelMatchHook to update our thresholds every 1000 iters. online: the LabelMatchHook only used before training to get the inital thresholds. update_interval means the interval to call this LabelMatchHook.

JCZ404 commented 1 year ago

Ok, I got it, thanks a lot.