BeloborodovDS / NCS-face

Test of Neural Compute Stick on YOLO and SSD face detection models (Desktop or Raspberry Pi, NCSDK2 or OpenVINO)
32 stars 5 forks source link

Error in step 7 #2

Closed leo2105 closed 6 years ago

leo2105 commented 6 years ago

Hi I got this error when I ran "sudo docker build -t dlconverter ." I am working in rpi3 stretch and movidius.

Step 7/17 : RUN git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . && pip install --upgrade pip && cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. && mkdir build && cd build && cmake -DCPU_ONLY=1 .. && make -j"$(nproc)" ---> Running in 2b6b22ed4b63 Cloning into '.'... Note: checking out 'eeebdab16155d34ff8f5f42137da7df4d1c7eab0'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

Collecting pip Downloading https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (1.3MB) Installing collected packages: pip Found existing installation: pip 8.1.1 Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr Successfully installed pip-18.0 Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main The command '/bin/sh -c git clone -b ${CLONE_TAG} --depth 1 https://github.com/BVLC/caffe.git . && pip install --upgrade pip && cd python && for req in $(cat requirements.txt) pydot; do pip install $req; done && cd .. && mkdir build && cd build && cmake -DCPU_ONLY=1 .. && make -j"$(nproc)"' returned a non-zero code: 1

I dont know what's the problem.

BeloborodovDS commented 6 years ago

@leo2105 Hi! Thanks for opening the issue.

I see several solutions:

a) Use SSD detector instead - it seems to be better anyway and does not require any conversion (see README)

b) If you still need YOLO: I have uploaded converted model to my Drive, so you can skip model conversion (see README for details)

c) If you feel like converting model yourself - I have fixed Dockerfile according to https://github.com/pypa/pip/issues/5221#issuecomment-381568428, see the latest commit.

Did I get it right that you use Docker with RPi? I am kind of surprised by the combination.

By the way, this project was NOT tested on RPi. However, I have a project with RPi that uses these models. It's still in progress and not well documented, and also uses NCSDK 2.0, which is not backward-compatible. However you still may use it as a reference: https://github.com/BeloborodovDS/BeggarBot