-
Notifications
You must be signed in to change notification settings - Fork 897
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
any use for arm64 MacOS Monterey on a M1 MAX Macbook? #294
Comments
fixed on my system above and following errors with: but ehhh I got none Cuda gpu script tells me:
anyone can help? |
Try following the instructions here. I'm not sure about onnxruntime and torch compatibility on a Mac, but you're going to have to do a bit of research for anything built for CUDA, and find the M1 builds in place of it. |
thank you it helps a lot .. work with 👍 `import torch x = torch.linspace(-math.pi, math.pi, 2000, device=device, dtype=dtype) a = torch.randn((), device=device, dtype=dtype) learning_rate = 1e-6
print(f'Result: y = {a.item()} + {b.item()} x + {c.item()} x^2 + {d.item()} x^3')` give following output ...
|
Great! If you haven't already, reinstall Simswap using these instructions, but replace the |
replaced and work ... I'll made a pull request of two scripts bash and python3 |
the cuda error is every time popup
|
hello I use TensorFlow GPU script from my git fork m1_tf_setup.sh well work fine !!!! thank you :) Layer (type) Output Shape Param #flatten (Flatten) (None, 784) 0 dense (Dense) (None, 128) 100480 dropout (Dropout) (None, 128) 0 dense_1 (Dense) (None, 10) 1290 dropout_1 (Dropout) (None, 10) 0 dense_2 (Dense) (None, 2) 22 ================================================================= |
take a closer look on this: 2022-07-10 16:41:42.188712: I tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.cc:305] Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support. Layer (type) Output Shape Param #flatten (Flatten) (None, 784) 0 dense (Dense) (None, 128) 100480 dropout (Dropout) (None, 128) 0 dense_1 (Dense) (None, 10) 1290 dropout_1 (Dropout) (None, 10) 0 dense_2 (Dense) (None, 2) 22 dropout_2 (Dropout) (None, 2) 0 ================================================================= |
unfortunly ... no luck ... but a error log
should stand "mps" NOT "cuda" --->>> device = torch.device("mps") possible to find with : |
Hi @Smiril, thanks for raising the issue and for the feedback. I am under M1 arm64 and I have the following error that is raised for the command line: UPDATE I finally solved my problem and gave a solution for working with amr64 by #180 (simswap) user@Users-MacBook-Air ~ % pip install insightface==0.2.1 onnxruntime moviepy
Collecting insightface==0.2.1
Using cached insightface-0.2.1-py2.py3-none-any.whl (24 kB)
Collecting onnxruntime
Using cached onnxruntime-1.12.1-cp39-cp39-macosx_11_0_arm64.whl (5.3 MB)
Collecting moviepy
Using cached moviepy-1.0.3.tar.gz (388 kB)
Preparing metadata (setup.py) ... done
Collecting matplotlib
Using cached matplotlib-3.6.0-cp39-cp39-macosx_11_0_arm64.whl (7.2 MB)
Collecting scipy
Using cached scipy-1.9.1-cp39-cp39-macosx_12_0_arm64.whl (29.9 MB)
Collecting easydict
Using cached easydict-1.9.tar.gz (6.4 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests in ./miniconda3/envs/simswap/lib/python3.9/site-packages (from insightface==0.2.1) (2.28.1)
Collecting scikit-learn
Using cached scikit_learn-1.1.2-cp39-cp39-macosx_12_0_arm64.whl (7.7 MB)
Collecting scikit-image
Using cached scikit_image-0.19.3-cp39-cp39-macosx_12_0_arm64.whl (12.5 MB)
Requirement already satisfied: Pillow in ./miniconda3/envs/simswap/lib/python3.9/site-packages (from insightface==0.2.1) (9.2.0)
Requirement already satisfied: numpy in ./miniconda3/envs/simswap/lib/python3.9/site-packages (from insightface==0.2.1) (1.23.3)
Collecting onnx
Using cached onnx-1.12.0.tar.gz (10.1 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/f9/xk3yn2n574x8_hbd83875qd40000gn/T/pip-install-t22tviae/onnx_1a1072999dce4bc6b7542af1a92f22c0/setup.py", line 81, in <module>
assert CMAKE, "Could not find cmake executable!"
AssertionError: Could not find cmake executable!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Did you find a way to run the command? Also is SimSwap executable with a CPU? Thanks a lot! |
updated pull request adding following: updated pull request running: pip3 install opencv-python |
by adding :pull request is the following error on: Traceback (most recent call last): |
want to run on "mps" the M1 GPU |
@Smiril to run with |
gettin some error on:
python3 train.py --name simswap224_test --batchSize 8 --gpu_ids 0 --dataset /var/deep/DSC_0015.JPG Traceback (most recent call last): File "train.py", line 17, in <module> import numpy as np ModuleNotFoundError: No module named 'numpy'
The text was updated successfully, but these errors were encountered: