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 565 forks source link

support python2 #152

Open HongwenZhang opened 6 years ago

HongwenZhang commented 6 years ago

Add support to python2:

  1. change the way of super() in every class;
  2. add from __future__ import absolute_import to import logging and collections correctly;
  3. add from __future__ import division to avoid ZeroDivisionError;