open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.13k stars 9.38k forks source link

conversion from epoch based runner to iteration based #8121

Closed iuliaalda closed 2 years ago

iuliaalda commented 2 years ago

hello! i wanted to modify the runner type from epoch based to iteration and my question is, is there any conversion formula that i must respect when setting the maximum number of iterations (and the lr step)? for example, if i initially had 10 epochs, i need 10*len(dataset) iterations? i've seen config files with 90k iterations on coco and that seemed quite little to me. thank you!

RangiLyu commented 2 years ago

iteration = epoch * len(dataset) / batch_size

iuliaalda commented 2 years ago

thanks!