Post

Replies

Boosts

Views

Activity

Reply to TFOD on M1 Mac
I got the TensorFlow object detection tutorial page (https://www.tensorflow.org/hub/tutorials/tf2_object_detection) running. I had successfully installed tensorflow-macos and tensor flow-metal before, so that I could do already the image classification task shown on the TensorFlow hub site, but object detection was not possible for me as the installation mentioned on TensorFlow hub did not work. Initially I was struggling with the cell containing the installation of the object_detection-package, mainly because of missing packages or package conflicts. I mean this piece of code: %%bash sudo apt install -y protobuf-compiler cd models/research/ protoc object_detection/protos/*.proto --python_out=. cp object_detection/packages/tf2/setup.py . python -m pip install . The failure always occurred with the last line. I could overcome them with the following steps (as it was a longer trial and error I hope I don't miss any steps): The missing tensor flow-text package for the M1 I found in the following git hub repository: https://github.com/sun1638650145/Libraries-and-Extensions-for-TensorFlow-for-Apple-Silicon/releases I downloaded the wheel and installed it with pip like mentioned there. I had to install tensorflow-io as well. The necessary steps I found here: https://stackoverflow.com/questions/70277737/cant-install-tensorflow-io-on-m1. I installed tf_slim as well manually pip install tf_slim After that I was able to execute the last piece of the bash-command sequences shown above, but I replaced the python -m pip install . by python -m pip install --force --no-dependencies . Don't miss the dot at the end as it stands for the current directory where the bash commands operate. pip list to see my versions As for the completeness here is the output of my pip list of my environment: I hope this helps.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’22