Image-Adaptive-YOLO icon indicating copy to clipboard operation
Image-Adaptive-YOLO copied to clipboard

环境问题(是否要求linux系统以及python版本)

Open stuwrc opened this issue 2 years ago • 4 comments

作者您好,请问作者这个工程是否一定要求Linux系统,我用Windows10系统按照requirments要求安装了环境,但是运行时报错显示numpy版本过低(目前是numpy==1.15.1,python3.7),感谢您的帮助。 ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' ImportError: numpy.core.multiarray failed to import ImportError: numpy.core._multiarray_umath failed to import ImportError: numpy.core.umath failed to import

stuwrc avatar Feb 22 '23 07:02 stuwrc

win10可以跑的,我就是用的win10,自测numpy==1.16.1是可以运行的,你可以把numpy升到这个版本

Mr-Hu123 avatar Feb 23 '23 14:02 Mr-Hu123

感谢您的帮助

stuwrc avatar Feb 28 '23 10:02 stuwrc

My compile configuration is that python == 3.7 && numpy == 1.16.1 && protobuf == 3.20.0

And there is a discussion in stackoverflow about the problem you have proposed.

BTW,it is important to know that the path separator returned by os.path.join depends on the OS you`re using. Cuz on UNIX and Linux ,os.path.join will use / as the separator , and on windows .os.path.join will use \ as the separator . So when running evaluate.py on win10 , there are likelihood that the project cann`t output the result image.

So how to run evaluate.py correctly? My solution is to modify the code on line 199 like this:

if os.name == 'posix':
  # Linux/Unix分割符 是 /
  image_name = image_path.split('/')[-1]
elif os.name == 'nt':
  # Windows   分割符 是 \
  image_name = image_path.split('\\')[-1]

Kiumb1223 avatar Oct 24 '23 14:10 Kiumb1223

@Kiumb1223 yes,that is very importent on windows! i lost lots of time until i see the issue.thanks!

7W7W7W avatar Apr 08 '24 08:04 7W7W7W