open-mmlab / mmrotate

OpenMMLab Rotated Object Detection Toolbox and Benchmark
https://mmrotate.readthedocs.io/en/latest/
Apache License 2.0
1.84k stars 542 forks source link

[Bug] 是否支持m1 苹果芯片? #998

Open zsk1993 opened 7 months ago

zsk1993 commented 7 months ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

master branch https://github.com/open-mmlab/mmrotate

Environment

m1 pro

Reproduces the problem - code sample

ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Reproduces the problem - command or script

ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Reproduces the problem - error message

ImportError: dlopen(/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so, 0x0002): tried: '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (no such file), '/Users/zhangshikang/anaconda3/envs/nhal/lib/python3.9/site-packages/mmcv/_ext.cpython-39-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

Additional information

1