dlstreamer / pipeline-server

Home of Intel(R) Deep Learning Streamer Pipeline Server (formerly Video Analytics Serving)
BSD 3-Clause "New" or "Revised" License
126 stars 51 forks source link

docker: Error response from daemon: error gathering device information while adding custom device "/dev/dri": no such file or directory. #34

Closed yangyyt closed 4 years ago

yangyyt commented 4 years ago

When I execute this command :/usr/local/bin/bash ./docker/run.sh -v /tmp:/tmp ,the terminal displays docker: Error response from daemon: error gathering device information while adding custom device "/dev/dri": no such file or directory.

How can I solve this problem?I'm not good at docker.

nnshah1 commented 4 years ago

Please comment out the follow line in the run.sh script - this indicates that the graphics HW in your setup is not available ( we will look into auto detecting this scenario):

https://github.com/intel/video-analytics-serving/blob/e735a1728fb4f19ddce51b5e6d42ef2bf4456ac7/docker/run.sh#L241

nnshah1 commented 4 years ago

@yangyyt Did this solve your issue?

yangyyt commented 4 years ago

Please comment out the follow line in the run.sh script - this indicates that the graphics HW in your setup is not available ( we will look into auto detecting this scenario):

https://github.com/intel/video-analytics-serving/blob/e735a1728fb4f19ddce51b5e6d42ef2bf4456ac7/docker/run.sh#L241

@yangyyt Did this solve your issue? yes ,it can run now ,but it cannot get me a result . image

nnshah1 commented 4 years ago

@yangyyt can you share the exact command line - it looks as if the output destination is not writeable

yangyyt commented 4 years ago

@yangyyt can you share the exact command line - it looks as if the output destination is not writeable

curl localhost:8080/pipelines/audio_detection/1 -X POST -H \ 'Content-Type: application/json' -d \ '{ "source": { "uri": "https://github.com/opencv/gst-video-analytics/blob/preview/audio-detect/samples/gst_launch/audio_detect/how_are_you_doing.wav?raw=true", "type": "uri" }, "destination": { "type": "file", "path": "~/Desktop/20200202/下半年/intel/video-analytics-serving/tmp/results_audio_events.txt", "format": "json-lines" } }'

yangyyt commented 4 years ago

@yangyyt can you share the exact command line - it looks as if the output destination is not writeable

I'm try to use absolute address for path(/Users/yuntingyang/Desktop/20200202/下半年/intel/video-analytics-serving/tmp/results_audio_events.txt).so results_audio_events.txt can be got ,but its content is empty. image

yangyyt commented 4 years ago

@yangyyt can you share the exact command line - it looks as if the output destination is not writeable

I'm try to use absolute address for path(/Users/yuntingyang/Desktop/20200202/下半年/intel/video-analytics-serving/tmp/results_audio_events.txt).so results_audio_events.txt can be got ,but its content is empty. image

just the network is not better.

nnshah1 commented 4 years ago

The results file path will need to be accessible in the docker container as well as in the host. When you start the container please pass in an appropriate volume mount, as an example (please note it looks as if you are running under windows so the first path may need changing based on how you've set up file mountint.

./docker/run.sh -v /mnt/c/Users/yuntingyang:/tmp/output

Then in your curl request, make the path relative to the docker path:

"destination": {
"type": "file",
"path": "/tmp/output/results_audio_events.txt",
"format": "json-lines"
}

This error:

A network error occurred, or the server closed

Indicates that the pipeline can't access the sample content. Can you ensure you have proxy variables set correctly - alternatively you can use the pre-download content in the samples folder:

'{
"source": {
"uri": "file:///home/video-analytics-serving/samples/how_are_you_doing.wav",
"type": "uri"
},
yangyyt commented 4 years ago

The results file path will need to be accessible in the docker container as well as in the host. When you start the container please pass in an appropriate volume mount, as an example (please note it looks as if you are running under windows so the first path may need changing based on how you've set up file mountint.

./docker/run.sh -v /mnt/c/Users/yuntingyang:/tmp/output

Then in your curl request, make the path relative to the docker path:

"destination": {
"type": "file",
"path": "/tmp/output/results_audio_events.txt",
"format": "json-lines"
}

This error:

A network error occurred, or the server closed

Indicates that the pipeline can't access the sample content. Can you ensure you have proxy variables set correctly - alternatively you can use the pre-download content in the samples folder:

'{
"source": {
"uri": "file:///home/video-analytics-serving/samples/how_are_you_doing.wav",
"type": "uri"
},

The program runs on a MAC, but I got it. just I didn't set the proxy variable. Thank you very much for your answer

nnshah1 commented 4 years ago

@yangyyt great news! Will close the issue. Let us know any feedback you have on the audio event detection sample and va serving in general.