qq44642754a / yolov5_ros Goto Github PK
View Code? Open in Web Editor NEWReal-time object detection with ROS, based on YOLOv5 and PyTorch (基于 YOLOv5的ROS实时对象检测)
Real-time object detection with ROS, based on YOLOv5 and PyTorch (基于 YOLOv5的ROS实时对象检测)
博主您好!
请问您使用的什么相机?
您用的yolov5是哪个版本?
我是载TX2上安装了torch1.8,python是3.6.9,在运行roslauch那步报错ImportError: No module named torc但是运行别的程序可以调用torch
希望得到博主的回复,谢谢博主!
请问,自己的训练模型为什么是放在model下呢?还是说是放在weights下?.pt文件是yolov5训练得到的格式吗?还是需要自己编写呢?谢谢!
大佬,我跑通了你的这个项目,个人感觉非常报不错,不过我和经过tensorrt加速过的对比了一下,速度稍微有点慢,大佬能将tensorrt加速后的yolov5用在ros中吗,我弄这个好久了没搞定
(mypytorch) aiman@aiman:~/Adroit6dof_ws/src/Yolov5_ros/yolov5_ros/yolov5_ros/yolov5$ [sudo pip install -r requirements.txt]
[sudo] password for aiman:
The directory '/home/aiman/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/aiman/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting matplotlib>=3.2.2 (from -r requirements.txt (line 4))
Could not find a version that satisfies the requirement matplotlib>=3.2.2 (from -r requirements.txt (line 4)) (from versions: 0.86, 0.86.1, 0.86.2, 0.91.0, 0.91.1, 1.0.1, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0, 1.3.1, 1.4.0, 1.4.1rc1, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0b4, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc1, 2.2.0, 2.2.2, 2.2.3, 2.2.4, 2.2.5)
No matching distribution found for matplotlib>=3.2.2 (from -r requirements.txt (line 4))
may i know how to solve this problem?
File "/home/li/Yolov5_ros-7.0_ws/src/Yolov5_ros-7.0/yolov5_ros/yolov5_ros/scripts/yolo_v5.py", line 140, in
main()
File "/home/li/Yolov5_ros-7.0_ws/src/Yolov5_ros-7.0/yolov5_ros/yolov5_ros/scripts/yolo_v5.py", line 134, in main
yolo_dect = Yolo_Dect()
File "/home/li/Yolov5_ros-7.0_ws/src/Yolov5_ros-7.0/yolov5_ros/yolov5_ros/scripts/yolo_v5.py", line 30, in init
self.model = torch.hub.load(yolov5_path, 'custom', path=weight_path, source='local')
File "/home/li/anaconda3/envs/mytorch/lib/python3.7/site-packages/torch/hub.py", line 358, in load
repo_dir = _get_cache_or_reload(github, force_reload, verbose)
File "/home/li/anaconda3/envs/mytorch/lib/python3.7/site-packages/torch/hub.py", line 137, in _get_cache_or_reload
repo_owner, repo_name, branch = _parse_repo_info(github)
File "/home/li/anaconda3/envs/mytorch/lib/python3.7/site-packages/torch/hub.py", line 131, in _parse_repo_info
repo_owner, repo_name = repo_info.split('/')
ValueError: too many values to unpack (expected 2)
怎么解决呢,不知道什么原因,求助
Can it run on Jetson?
您好
Hello Zhitao,
Thank you for the great repo Yolov5. I have installed everything according to the guide from this link Zhitao
I think it is working, please see the screenshot.
I have a ZED camera, I have launched it in ROS, now I need to subscribe to it. This will be done automatically, or I need to change something in your repo?
Also, I have put my weights best.pt in the weights folder, I have changed the weights name in launch filet to "best.pt". When I launch the package, there is an some model error and something related to the path, and something related to yolo.py file.
The screenshot about this error is attached too.
Please, will you check this error? I think the best.pt file is the reason for this.
I have trained the yolov5 and saved the weights few days ago in Google Colab using Ultralytics yolov5, these weights are working great in Colab and on Ubuntu too in Python.
Thank you in advance.
Best regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.