Comments (3)
@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.
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.
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)
- Why is the number of FP, TP calculated by val.py for a certain class different from the number predicted by detect.py and then calculated? HOT 1
- Saving Augmented Images HOT 1
- TensorRT is slower than pytorch HOT 7
- The accuracy of the .pt model will decrease after being converted to .engine model. HOT 5
- Guide on how to utilize 'Weighted Loss' method in yolov5 custom training HOT 2
- Extract information of Coordinates HOT 2
- ModuleNotFoundError: No module named 'models.yolo' on custom trained weight. Is it a bug? HOT 6
- Why 'targets' values from train.py are different from the ground truth annotation in txt files? HOT 3
- A question between yolov5s-p5 and the parameters imgsz HOT 2
- YOLOv5 Output Size Issue HOT 2
- What Should Be the Output Size of Predictions for Object Detection? HOT 3
- stuck training on NVIDIA H100 HOT 2
- Problem running inference on YOLOv5s for custom trained model using Python HOT 2
- The confidence loss (obj_loss) scales of the training and validation sets are inconsistent. HOT 1
- The memory usage of the 0 card will increase until it is out of memory HOT 4
- scale_masks fucntion HOT 1
- cls loss HOT 1
- Problem with training for a single class HOT 4
- Issue when try to validate openvino format model 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 yolov5.