一个基于yolov5-5.0的中文注释版本,供大家参考学习!
A Chinese annotated version of yolov5-5.0
一个基于yolov5-5.0的中文注释版本!
一个基于yolov5-5.0的中文注释版本,供大家参考学习!
A Chinese annotated version of yolov5-5.0
博主你好,请问我想要在yaml文件中改网络格式,想要输入的是两个模态的数据(红外和可见光模态)。现在需要有两个输入的数据集要被读到,博主可以给一些建议吗,有偿,十分感谢了。
!python /content/drive/MyDrive/yolov5-5.x-annotations-main/train.py --img 640 --batch 16 --epochs 200 --data /content/drive/MyDrive/YOLO/yuanshiyolov5peizhi/yuan.yaml --cfg /content/drive/MyDrive/yolov5-5.x-annotations-main/models/yolov5s.yaml --weights /content/drive/MyDrive/YOLO/yolov5/yolov5s.pt
Traceback (most recent call last):
File "/content/drive/MyDrive/yolov5-5.x-annotations-main/train.py", line 36, in
import val # for end-of-epoch mAP
File "/content/drive/MyDrive/yolov5-5.x-annotations-main/val.py", line 23, in
from models.experimental import attempt_load
File "/content/drive/MyDrive/yolov5-5.x-annotations-main/models/experimental.py", line 7, in
from models.common import Conv, DWConv
File "/content/drive/MyDrive/yolov5-5.x-annotations-main/models/common.py", line 17, in
from utils.datasets import letterbox
File "/content/drive/MyDrive/yolov5-5.x-annotations-main/utils/datasets.py", line 20, in
matplotlib.use('TkAgg')
File "/usr/local/lib/python3.7/dist-packages/matplotlib/cbook/deprecation.py", line 296, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/matplotlib/cbook/deprecation.py", line 358, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/matplotlib/init.py", line 1281, in use
plt.switch_backend(name)
File "/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py", line 237, in switch_backend
newbackend, required_framework, current_framework))
ImportError: Cannot load backend 'TkAgg' which requires the 'tk' interactive framework, as 'headless' is currently running
谢谢up主的分享,不知道up主有没有把CAattention加进去试过,我把CoorAttention加进去后,运行yolo.py里的
if opt.profile:
img = torch.rand(8 if torch.cuda.is_available() else 1, 3, 640, 640).to(device)
print('image size is', img.size())
y = model(img, profile=True)
会报错:
kernel = torch.DoubleTensor([*(x[0].shape[2:])]) // torch.DoubleTensor(list((m.output_size,))).squeeze()
TypeError: must be real number, not NoneType,是从x_h = self.pool_h(x) # h avg pool过来的。
如果up主试过,不知道是否遇到这个问题?遇到这个问题是如何解决的?
谢谢!!!
在utils.general.py文件中, 第420行的download函数, 项目中注释是没有用到, 其实是用到了
在data目录下的VOC.yaml文件的download配置中(63行), 调用了这个函数, 作用是下载VOC数据集并解压.
希望补充一下
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.