-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
DLC 2.2 for macoS M1 chips #1430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks to the team for this quick fix! DLC works now without a hitch on my Air M1 (2020). |
|
I should also say, tested this on my Pro book. Thanks! |
|
The TensorFlow 2.5 wheel can be found here: https://drive.google.com/drive/folders/11cACNiynhi45br1aW3ub5oQ6SrDEQx4p |
|
This also fixed the issue I was trying to solve today on a non-M1chip mac (Mac OS Catalina; Intel Core i7). It seems like there is no pythonw for python3.8 so whenever I ran pythonw it was using my 'native' usr/bin/ pythonw. I could not figure out how to get pythonw for python3.8 (tried too many things to list and none of them ended up fruitful). Whatever magic is happening in this M1chip environment solved this issue. Obviously(?) it is because the M1 environment has python3.7? I had tried downgrading to 3.7 in the DEEPLABCUT environment and that alone failed for obvious reasons.... |
|
Thanks for your updates on M1. Sadly, I am still facing some errors while installing. I am currently using miniforge to run anaconda fyi. Below are the errors. conda env create -f DEEPLABCUT_M1.yaml induces ResolvePackageNotFOund: - python=3.7. So once I edit the .yaml file to change python=3.7 to python=3.8 then it seems to work, however, at the stage of pip install, ultimately the terminal shows **WARNING: Discarding https://files.pythonhosted.org/packages/ec/ed/46b835da53b7ed05bd4c6cae293f13ec26e877d2e490a53a709915a9dcb7/matplotlib-2.2.2.tar.gz#sha256=4dc7ef528aad21f22be85e95725234c5178c0f938e2228ca76640e5e84d8cde8 (from https://pypi.org/simple/matplotlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. failed CondaEnvException: Pip failed** Anyone could help with this? Thank you in advance. |
|
3.8 won't work for the M1 due to dependency issues; you will have to use 3.7; is there a reason you don't have 3.7 installed? I recommend installing anaconda and trying again! I can def. confirm it works on our M1 chip Macs from early to late 2021. |
|
Successfully installed by launching terminal from the anaconda navigator. Launching terminal program directly from the desktop had 'miniforge' environment as a default, which does not support python 3.7. Thanks! Bests, |
|
super - glad to hear :) enjoy! |
Based on issue #1380, and in particular comment #1380 (comment), here is a DLC environment that works on M1 chips (freshly acquired - today - macbook pro was used for testing that had High Sierra installed).
Use this (DEEPLABCUT_M1.yaml) conda file if you have an M1, and follow these steps:
DeepLabCut M1 chip installation environment instructions (assuming you have anaconda installed!):
(1) git clone the deeplabcut cut repo:
git clone https://github.com/DeepLabCut/DeepLabCut.git(2) in the program terminal,
cd DeepLabCut/conda-environments(3) Click here to download the Rosetta wheel for TensorFlow 2.4.1:
https://drive.google.com/file/d/17pSwfoNuyf3YR8vCaVggHeI-pMQ3xL7l/view?usp=sharing
(4) Then, run:
conda env create -f DEEPLABCUT_M1.yaml(5) Next, activate the environment, and in the terminal
cdto Downloads, and then run:pip install tensorflow-2.4.1-py3-none-any.whl --no-dependencies --force-reinstall(6) Next, launch DLC with
pythonw -m deeplabcutGUI will open!