Skip to content
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

Docker env + working demo video + docker images link #5

Closed
XGenietony opened this issue Jun 23, 2021 · 13 comments
Closed

Docker env + working demo video + docker images link #5

XGenietony opened this issue Jun 23, 2021 · 13 comments

Comments

@XGenietony
Copy link

I don't know what is going on.
I just try to test python -m pyk4a.viewer --undistort_depth --vis_depth --parallel_bt
I have connected my Kinect Camera.
But it still can not run.
The Bugs look like these:
2021-06-23 19-39-09屏幕截图

@rmbashirov
Copy link
Owner

Hi!

Glad you managed to install our docker.

I've tested current code on a new machine today and it worked.

Can you make an additional screenshot of running ./run_local.sh and nvidia-smi after that?

@rmbashirov
Copy link
Owner

@XGenietony
Does sudo xhost + from host (not from docker container) work?

@XGenietony
Copy link
Author

XGenietony commented Jul 1, 2021

Hi!

Glad you managed to install our docker.

I've tested current code on a new machine today and it worked.

Can you make an additional screenshot of running ./run_local.sh and nvidia-smi after that?

Actually i have solved this problem.
I think we need to change the shell ./run_local.sh like this:

#!/usr/bin/env bash

source source.sh

VOLUMES="-v /home/xgenie:/home/xgenie -v /storage:/storage -v $PWD/../src:/src"

# ensure nvidia is your default runtime
# docker run -it --rm --name test --gpus all ubuntu:latest (it may not pull the GPU up)
sudo docker run -it --rm $PARAMS $VOLUMES --gpus all $NAME_03 $@

Because the original shell can not use the Nvidia GPU, it caused OpenGL problem.

For another, i think the ./run_server should be changed like this:

#!/usr/bin/env bash

python server.py --config ./config/server/renat.yaml

We can direct run server.py in docker.

@XGenietony
Copy link
Author

Thank your code & reply.
I just met problem like #2 .
2021-07-01 09-27-33屏幕截图
I search this bug. The version of Numpy may <=1.19.5.
But i found Numpy 1.20.2 in my docker. So i think we need to change the Numpy Version in docker.

@rmbashirov
Copy link
Owner

@XGenietony

You're right, the default version of numpy changed, I checked only pyk4a.viewer yesterday.

I've updated the code 5e7560d. I also contains instructions on how to run docker without sudo. Whole system works.

I guess you've managed to run our system, can you share a representative picture of our system running?

@XGenietony
Copy link
Author

@XGenietony

You're right, the default version of numpy changed, I checked only pyk4a.viewer yesterday.

I've updated the code 5e7560d. I also contains instructions on how to run docker without sudo. Whole system works.

I guess you've managed to run our system, can you share a representative picture of our system running?

Sorry, because of Numpy problem, i can not completely run your system.
Now, I can run your system without hand pose predict.
I am updating my docker. When i can completely run the system, i will upload my sreenshot.

PS: we may save the docker images as tar files and upload. The other users can recover docker images from tar files. It will help people quick start.
:)

@rmbashirov
Copy link
Owner

@XGenietony
Rebuilding with new numpy will take only 10 mins.

From what I see, the problem is not to build image, but to install docker ;(

@XGenietony
Copy link
Author

@XGenietony
Rebuilding with new numpy will take only 10 mins.

From what I see, the problem is not to build image, but to install docker ;(

Sorry, i change a new machine and my colleagues use my camera for another project, so i can not upload my screenshot immediately.

Because of chinese firewall, rebuilding docker is so difficult. But, i still update my docker with Numpy 1.19.5. I upload the tar file on :https://drive.google.com/file/d/1h9TTmysSfBCzRx9nqwQ-LF4zkZuSKF4-/view?usp=sharing
For Chinese developers https://pan.baidu.com/s/1yYgFSHO0O46HzimFf1PMKg Password vu1u

It might help other developers.

@rmbashirov
Copy link
Owner

@XGenietony
Thank you

I'll check next week, If all good, I'll add both links to main readme.

@XGenietony
Copy link
Author

Hey bro. , i take my camera back, and this is the demo

demo.mp4

@rmbashirov
Copy link
Owner

Baidu link works! See link in comment from @XGenietony
Download azure_kinect.tar
Do docker load < azure_kinect.tar
You will see smth like Loaded image ID: sha256:7f93c908099c14cee0baff865f307b464ef66c8631174969c8eb812ba62f4a5d
Then do docker tag sha256:7f93c908099c14cee0baff865f307b464ef66c8631174969c8eb812ba62f4a5d azure_kinect:03_final

@rmbashirov
Copy link
Owner

@XGenietony I updated master readme.md 0318072
Cannot access google drive link due to permission request, can you make public link?

@rmbashirov rmbashirov changed the title Error: OpenGL 4.4 not supported. Please install latest graphics drivers. Docker env + working demo video Aug 11, 2021
@rmbashirov rmbashirov changed the title Docker env + working demo video Docker env + working demo video + docker images link Aug 11, 2021
@ykk648
Copy link

ykk648 commented Apr 19, 2022

reminds 2 things:

  1. the host needs kinect driver
    2. the host needs conda env with requirements
  2. failed on a cuda11&rtx3080 pc, succeed on a cuda10.2&1080 pc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants