tianzhi0549 / FCOS

FCOS: Fully Convolutional One-Stage Object Detection (ICCV'19)
https://arxiv.org/abs/1904.01355
Other
3.28k stars 630 forks source link

Fix torch._six.PY3 not found in newer pytorch versions #359

Open guigarfr opened 3 years ago

guigarfr commented 3 years ago

Newer python versions do not have variable torch._six.PY3 [Issue] which is also a module not meant to be imported in a project.

PY3 only checks that python version is 3, and we can do that directly using sys.

zxr-Cr7 commented 3 months ago

请问如何用sys解决?