roytseng-tw / Detectron.pytorch

A pytorch implementation of Detectron. Both training from scratch and inferring directly from pretrained Detectron weights are available.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

change python3 to python2

13070151771 opened this issue · comments

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