chineseocr / chineseocr

yolo3+ocr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

可以在mac chip m2,arm64的architecture上跑吗?

Leonz5288 opened this issue · comments

试了一下好像不太行
请问一下有没有什么解决办法还是说现在暂时不支持?

leon5288@MacBook-Pro chineseocr % python3 app.py 8080
Traceback (most recent call last):
  File "app.py", line 43, in <module>
    from text.darknet_detect import text_detect
  File "/Users/leon5288/code/chineseocr/text/darknet_detect.py", line 10, in <module>
    import darknet as dn
  File "python/darknet.py", line 49, in <module>
    lib = CDLL(root + "chineseocr/darknet/libdarknet.so", RTLD_GLOBAL)
  File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/leon5288/code/chineseocr/darknet/libdarknet.so, 0x000A): tried: '/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (no such file), '/Users/leon5288/code/chineseocr/darknet/libdarknet.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))