Giter Club home page Giter Club logo

Comments (6)

mdegans avatar mdegans commented on July 20, 2024

I'm not sure why the arch meta is wrong on Docker Hub. It's built on a Tegra device I use for the purpose. I think the issue is with the base image of JetPack 4.3. I would guess the same cause you did (qemu-user-static etc...). The 4.4 meta is correct, so it appears Nvidia fixed it. If for some reason mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0 doesn't run on Tegra, feel free to re-open this.

from nano_build_opencv.

lackdaz avatar lackdaz commented on July 20, 2024

I'm trying to find a docker image/build that details a build that runs with opencv

I've tried yours and got the dreaded segmentation fault (core dumped) error sigh

Steps to reproduce:
docker run -it mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0 /bin/bash
python3
import cv2

I'm trying to run it on a nano with r32.3.1 and the reason why I'm doing it in docker containers is because I got a docker-compose microservices approach going.

I've actually been dancing around this issue for some time and its quite vexing. Do you have a personal email/contact I could use? I've read your code and seen a lot of your solutions on the devtalk forums and would like to engage you on a professional basis (or at least contribute something) for some deploy ops, but haven't found a point of contact. I can be contacted on my @gmail.com

from nano_build_opencv.

mdegans avatar mdegans commented on July 20, 2024

@lackdaz

That can happen when you don't specify --runtime nvidia when you docker run.

Example run:

(sudo) docker run --user $(id -u):$(cut -d: -f3 < <(getent group video)) --runtime nvidia -it --rm mdegans/tegra-opencv:jp-r32.3.1-cv-4.3.0

Depending on the compose version, you may not be able to use runtime. I think 2.x supports it while 3.x does not. In 3.x you can specify gpus as resources (only with swarm), but this is not available for the tegra nvidia runtime yet.

note: The --user flag is just so you don't run as root (the default in Docker).

from nano_build_opencv.

mdegans avatar mdegans commented on July 20, 2024

@lackdaz Re: contact: [email protected]

from nano_build_opencv.

lackdaz avatar lackdaz commented on July 20, 2024

Ok, I hang my head in shame because I've made this error before. I probably should get the solution tattooed

I'll be contacting you

from nano_build_opencv.

mdegans avatar mdegans commented on July 20, 2024

Ok, I hang my head in shame because I've made this error before.

@lackdaz
No worries. It happens to me all the time. You're not the first to have that error. I put the example run in the readme, but I think a lot of people skip it. I should probably add an entrypoint that checks for the gpu device and throws a descriptive error if it's not mounted.

from nano_build_opencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.