55import sys
66
77from setuptools import find_packages , setup
8+ from distutils .version import LooseVersion
89
910
1011def is_docker () -> bool :
@@ -88,9 +89,9 @@ def get_opencv_requirement():
8889
8990DEPENDENCIES = [
9091 # We rely on particular activation functions that were added in 1.8.1
91- "torch>=1.8.1 " ,
92+ "torch>=1.11.0" if LooseVersion ( sys . version ) >= LooseVersion ( "3.7" ) else "torch>=1.10.0 " ,
9293 # We use some pretrained models from torchvision
93- "torchvision>=0.9.1 " ,
94+ "torchvision" ,
9495 # Library uses scipy for linear_sum_assignment for match_bboxes.
9596 # 1.4.0 is the first release where `maximize` argument gets introduced to this function
9697 "scipy>=1.4.0" ,
@@ -116,9 +117,7 @@ def load_readme():
116117
117118
118119def get_test_requirements ():
119- requirements = ["pytest" , "onnx==1.9.0" , "black==22.8.0" , "timm==0.6.7" , "matplotlib" ]
120- if sys .version_info < (3 , 3 ):
121- requirements .append ("mock" )
120+ requirements = ["pytest" , "black==22.8.0" , "timm==0.6.7" , "matplotlib" ]
122121 return requirements
123122
124123
@@ -147,6 +146,10 @@ def get_test_requirements():
147146 "Unet" ,
148147 "Focal" ,
149148 "FPN" ,
149+ "EfficientNet" ,
150+ "Test-Time Augmentation" ,
151+ "Model Ensembling" ,
152+ "Model Surgery" ,
150153 ],
151154 scripts = [],
152155 license = "License :: OSI Approved :: MIT License" ,
@@ -158,9 +161,14 @@ def get_test_requirements():
158161 "Programming Language :: Python :: 3" ,
159162 "Programming Language :: Python :: 3.6" ,
160163 "Programming Language :: Python :: 3.7" ,
164+ "Programming Language :: Python :: 3.8" ,
165+ "Programming Language :: Python :: 3.9" ,
166+ "Programming Language :: Python :: 3.10" ,
161167 "Operating System :: OS Independent" ,
162168 "Topic :: Scientific/Engineering :: Mathematics" ,
163169 "Topic :: Scientific/Engineering :: Image Recognition" ,
170+ "Topic :: Scientific/Engineering :: Deep Learning" ,
171+ "Topic :: Scientific/Engineering :: Computer Vision" ,
164172 "Topic :: Scientific/Engineering :: Artificial Intelligence" ,
165173 "Topic :: Software Development :: Libraries" ,
166174 "Topic :: Software Development :: Libraries :: Python Modules" ,
0 commit comments