GithubHelp home page GithubHelp logo

Comments (3)

glenn-jocher avatar glenn-jocher commented on June 2, 2024

@Munia-AK hi there! 😊

Loading the YOLOv5 model without the Ultralytics package directly isn't supported as the model and the library are tightly integrated. It's essential to use our software to ensure all features and functionalities of YOLOv5 work correctly.

However, you could consider using a virtual environment with Python 3.8 or later while still using Python 3.6 for OpenCV in another environment on your Jetson Nano. This could potentially help you solve the compatibility issues without needing to compromise on the camera input or the performance of YOLOv5.

Let me know if this solution helps or if you have any more questions!

from yolov5.

Munia-AK avatar Munia-AK commented on June 2, 2024

Hello @glenn-jocher! Thank you for your quick response
I tried doing this but since I'm using Jetson Nano, Python 3.6 is being the default interpreter so even when installing python3.8 and making it as default interpreter I still can't import opencv for python3.8
I don't know if I'm missing something but according to what I found in the NVIDIA forums, Jet Pack 4 won't support installing packages for python 3.8, so when I'm building OpenCV using the shell script that JetsonHacks repository is providing I saw that inside the script there are these lines:

Python 2.7

sudo apt-get install -y python-dev python-numpy python-py python-pytest

Python 3.6

sudo apt-get install -y python3-dev python3-numpy python3-py python3-pytest

so I tried replacing python3 with python 3.8 but I get the error mentioning that the wanted packages can't be found
I will try find a solution for the problem otherwise I will just change to YOLOv4
have a nice day!

from yolov5.

glenn-jocher avatar glenn-jocher commented on June 2, 2024

Hello @Munia-AK! 🌟

It seems like the environment constraints on the Jetson Nano are indeed quite challenging. If the package installation persists to be an issue with Python 3.8, and modifying the setup scripts isn’t solving it, an alternate might be to utilize Docker containerization where you could manage different Python environments more flexibly.

Alternatively, redirecting to YOLOv4 is a practical route if it aligns better with the system constraints you're dealing with.

Best of luck, and don't hesitate to reach out if you have further questions or need additional assistance! Have a great day! 😊

from yolov5.

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.