tensorflow / models

Models and examples built with TensorFlow
Other
76.79k stars 45.84k forks source link

Installing tf2 od in Jetson Xavier NX #9604

Open yieniggu opened 3 years ago

yieniggu commented 3 years ago

Hello, I'm trying to install the object detection api, but it gets stuck in a circular requirements check.

How can i solve this?

Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from object-detection==0.1) (0.19.1)
Requirement already satisfied: Cython in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (0.29.21)
Requirement already satisfied: dataclasses in /home/basti/.local/lib/python3.6/site-packages (from tf-models-official->object-detection==0.1) (0.8)
Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from object-detection==0.1) (0.19.1)
Requirement already satisfied: Cython in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (0.29.21)
Requirement already satisfied: tensorflow>=2.3.0 in /usr/local/lib/python3.6/dist-packages (from tf-models-official->object-detection==0.1) (2.3.1+nv20.11)
Requirement already satisfied: dataclasses in /home/basti/.local/lib/python3.6/site-packages (from tf-models-official->object-detection==0.1) (0.8)
Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from object-detection==0.1) (0.19.1)
Requirement already satisfied: Cython in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (0.29.21)
Requirement already satisfied: dataclasses in /home/basti/.local/lib/python3.6/site-packages (from tf-models-official->object-detection==0.1) (0.8)
Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from object-detection==0.1) (0.19.1)
Requirement already satisfied: Cython in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (0.29.21)
Requirement already satisfied: dataclasses in /home/basti/.local/lib/python3.6/site-packages (from tf-models-official->object-detection==0.1) (0.8)
Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from object-detection==0.1) (0.19.1)
Requirement already satisfied: Cython in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (0.29.21)
Requirement already satisfied: dataclasses in /home/basti/.local/lib/python3.6/site-packages (from tf-models-official->object-detection==0.1) (0.8)
Requirement already satisfied: six in /home/basti/.local/lib/python3.6/site-packages (from object-detection==0.1) (1.15.0)
Requirement already satisfied: pyyaml in /usr/lib/python3/dist-packages (from tf-models-official->object-detection==0.1) (3.12)

I just keep getting this message...

saikumarchalla commented 3 years ago

@yieniggu Can you create virtual environment and then try to install TF OD API again. Please let us know if you are facing the same error.

Please go through this link to install Objection Detection API.Thanks!

yieniggu commented 3 years ago

@saikumarchalla , thanks for your prompt reply. I'll try it and update this topic afterwards.

Also, can I ask you to check this post in stackoverflow about how are the checkpoints saved when training a custom model?

https://stackoverflow.com/questions/65556338/how-are-checkpoints-created-in-a-custom-object-detector-with-tensorflow-2-model

Thanks.

yieniggu commented 3 years ago

@saikumarchalla currently it's not possible to install it following the approach you mentioned, since anaconda doesn't support aarch64 architecture from the Jetson Xavier NX as stated here https://forums.developer.nvidia.com/t/is-it-possible-to-install-anaconda-on-xavier-at-all/83560.

Any other recommendation?

hitch22 commented 3 years ago

I am stuck with the same issue, following the same guideline to the T. The problem is pip does infinite dependencies check, which are already installed in the first place. I can get it to run through and through by commenting out some of the dependencies that cause the issue in the setup.py file and/or using legacy pip resolver. However, it still will not compile and will give errors and will not install properly. Any suggestions or workarounds?