bencevans / megadetector-desktop

MegaDetector Desktop: Simple Interface for Detection of Humans, Animals and Vehicles in Camera Trap Imagery
3 stars 1 forks source link

Document MacOS M1 Setup #7

Closed bencevans closed 2 years ago

bencevans commented 2 years ago

https://asciinema.org/a/3ix56vOvZ8toBr1HFfCztpUpz

git clone git@github.com:bencevans/megadetector-desktop.git mdd
cd mdd
conda create -n fresh python==3.9
conda activate fresh
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
poetry export --dev --without-hashes > requirements.txt
cd ..
git clone https://github.com/tensorflow/io
cd io
git checkout v0.25.0
python3 setup.py -q bdist_wheel
pip install --no-deps ./dist/tensorflow_io-0.25.0-cp39-cp39-macosx_11_0_arm64.whl
python3 setup.py -q bdist_wheel --project tensorflow_io_gcs_filesystem
pip install ./dist/tensorflow_io_gcs_filesystem-0.25.0-cp39-cp39-macosx_11_0_arm64.whl
cd ../mdd
pip install -r requirements.txt
python -m pip install tensorflow-macos
pip install -r requirements.txt
conda install tensorflow==2.8
pip install -r requirements.txt
python app.py
# wooo all working!
bencevans commented 2 years ago

Documentation here should be enough for the time being