roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.
MIT License
2.82k stars 567 forks source link

change python3 to python2 #186

Closed 13070151771 closed 5 years ago

13070151771 commented 5 years ago

after i change code to python2.when i run infer_simple,the ZeroDivisionError: float division by zero happens in rpn_head.py lin48 :stride=1. / spatial_scale.but spatial_scale shouldnt be zero,and i python3 everything is ok.what can i do? i change collections to collections1 and logging to logging1 because absolute import doesnt work.and i have changed super and imported future.divesion