Comments (11)
Finally got it all working under Docker. Needs to clean everything up, and create a pull request, but the hard part is over :)
from opendatacam.
At the moment it feels like a configuration issue with my device as I get output errors in nvidia-container-cli
$ nvidia-container-cli info
NVRM version: (null)
CUDA version: 11.4
Device Index: 0
Device Minor: 0
Model: Xavier
Brand: (null)
GPU UUID: (null)
Bus Location: (null)
Architecture: 7.2
from opendatacam.
Opened a thread in the NVIDIA Forums to see how to get GPU access in Docker working https://forums.developer.nvidia.com/t/nvidia-container-cli-does-not-show-nvrm-version-or-gpu-information/266204
from opendatacam.
Going deeper into debugging I believe the issue is with the resinplayground/jetson-nano-cuda-cudnn-opencv:v0.2-slim
image we use as a base for our Darknet image. It looks like this image does not detect the GPU.
I'm currently looking into different ways to dockerize Darknet with GPU access such as https://github.com/daisukekobayashi/darknet-docker/tree/master which uses a pre-built container by NVIDIA with CUDA and cuDNN (that is also much smaller then resinplayground!)
from opendatacam.
daisukekobayashi only offers AMD64 builds, which we can not run on the Jetson devices, will therefore attempt to rebuild his image for ARM. If this works it could be a way to get ODC running on JetPack 5 and solve #608 at the same time!
This issue has been updated to show the new status of development.
from opendatacam.
While I managed to build an ARM version of https://github.com/daisukekobayashi/darknet-docker/ I could not yet run Darknet in Docker. It always freezes with the following output
CUDA-version: 11020 (11040), cuDNN: 8.1.1, CUDNN_HALF=1, GPU count: 1
CUDNN_HALF=1
OpenCV version: 4.2.0
0 : compute_capability = 720, cudnn_half = 1, GPU: Xavier
net.optimized_memory = 0
mini_batch = 1, batch = 1, time_steps = 1, train = 0
layer filters size/strd(dil) input output
0 Create CUDA-stream - 0
The same error was already reported to the upstream repository AlexeyAB/darknet#8676
from opendatacam.
Still no luck, opened a new issue in the official container runkit to ask for additional help NVIDIA/nvidia-container-toolkit#124
from opendatacam.
I got it working with https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-jetpack to the point where I can run a JPEG through Darknet in Docker and it uses the GPU. But the resulting production image is 9.8GB large.
I checked how the base image is built and it includes a bunch of software we don't need for Darknet. I will check if I can build a custom base image with only CUDA, cuDNN and OpenCV to make the image slimmer.
from opendatacam.
Here's the Dockerfile for https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-jetpack: https://gitlab.com/nvidia/container-images/l4t-jetpack/-/blob/master/Dockerfile.jetpack
The file looks straightforward so I will try to copy the important parts from there.
Here's the Docker Base https://catalog.ngc.nvidia.com/orgs/nvidia/containers/l4t-base for the container.
from opendatacam.
Hmm, the docker base Image I used is not available for amd64 and therefore the Desktop version. I will only update the ARM builds (Jetson Nano and Xavier) for now.
from opendatacam.
Released with https://github.com/opendatacam/darknet/releases/tag/v2.0.0-beta1
from opendatacam.
Related Issues (20)
- Problem with random crashing HOT 4
- Saving counter locations and names HOT 2
- Yolo Simulation in Live Mode does not increment frame ID correctly
- Add missing docker-compose file for cpu-amd64 platform
- Path View: Keep color if ID does not change
- Fix urlHelper
- MongoDB CPU usage increasing over time HOT 1
- Update to NodeJS v20 HOT 1
- Update Darknet for to latest upstream HOT 3
- Update GitHub Actions to latest version in Darknet repo HOT 1
- Think about merging those changes from opendatacam/[email protected]:darknet:odc into https://github.com/vsaw/darknet/tree/607-darknet-jetpack5 HOT 3
- Detection in 3.0.2 is not working on desktop HOT 15
- Fix annnoying failing Darknet builds
- Update Darknet Desktop Docker Image HOT 2
- Update Documentation and make CUDA 11 a minimum requirement to run OpenDataCam
- Builld Darknet CPU Image from main branch HOT 1
- Get yolov4-416x416.cfg into Darknet main branch
- Rename Docker Repository to OpenDataCam/Darknet
- Update NextJS and React HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendatacam.