mirror of https://github.com/JDAI-CV/fast-reid.git
Update build.py
parent
39887a102e
commit
d2544d5b5d
|
@ -8,7 +8,14 @@ import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
from torch._six import string_classes
|
TORCH_MAJOR = int(torch.__version__.split('.')[0])
|
||||||
|
TORCH_MINOR = int(torch.__version__.split('.')[1])
|
||||||
|
|
||||||
|
if TORCH_MAJOR == 1 and TORCH_MINOR < 8:
|
||||||
|
from torch._six import string_classes
|
||||||
|
else:
|
||||||
|
string_classes = str
|
||||||
|
|
||||||
from collections import Mapping
|
from collections import Mapping
|
||||||
|
|
||||||
from fastreid.config import configurable
|
from fastreid.config import configurable
|
||||||
|
|
Loading…
Reference in New Issue