Comments (9)
Why does detect.py have no results
你好学长,我在利用已有的权重检测新的图片时,利用detect.py监测出来的图片上没有标注结果,是什么原因?
from drenet.
哈喽@ymj11,
我刚测试了下,代码本身应该是没问题的。下面左图是测试图,右图是测试结果:
如果测试的时候没有检测结果,一种可能是检测结果置信度较低,可以适当减小--conf-thres
的值;另一种可能是检测器本身就没能检测出船只小目标,这可能是因为测试图像与训练图像差异较大
from drenet.
学长 这个 代码需要什么修改的地方吗 ?
Namespace(weights='.\DRENet.pt', source='images/', img_size=512, conf_thres=0.25, iou_thres=0.45, device='', view_img=False, save_txt=False, save_conf=False, classes=None, agnostic_nms=False, augment=False, update=False, project='runs/detect', name='exp', exist_ok=False)
我从数据集中找了 200多张影像还是一张都检测不出来 ,程序是正常能跑通的
from drenet.
那有点奇怪,数据集是指Levir-ship数据集吗?你可以发我几张含船的图像我测下
from drenet.
学长您试一下
from drenet.
哈喽 @ymj11 ,
我这边输出结果如下(就是直接运行detect.py,没有作任何修改):
from drenet.
好的 学长 我运行出来了 我把--device 参数写的cpu就可以运行出来 我直接用的gpu跑 程序也不会报错
YOLOv5 torch 2.1.0+cu121 CUDA:0 (NVIDIA GeForce GTX 1660 SUPER, 6143.6875MB)
这个原因怎么解释呀 学长
from drenet.
这我也不清楚,好奇怪。我这cpu和cuda都可以运行,按理说device设置不影响结果的。
from drenet.
好的 谢谢学长 麻烦您了 我在仔细研究一下
from drenet.
Related Issues (20)
- Error when doing inference using augmentation HOT 11
- Adapt for yolov5l6 HOT 6
- performance decrease during training HOT 1
- 运行detect.py出错,您好我把C3ResAtnMHSA加入了yolov7中,出现下面的错误 HOT 2
- DRENet model training on degraded images HOT 8
- Problems in the ConcatFusionFactor of common.py HOT 2
- RuntimeError: result type Float can't be cast to the desired output type long int HOT 2
- 实验 HOT 3
- detect报错 HOT 11
- 关于测试标签 HOT 6
- 关于C3ResAtnMHSA模块的问题 HOT 2
- 关于concatFusionFactor的问题 HOT 2
- I cannot run DRENet. Because has a bug: RuntimeError: The size of tensor a (160) must match the size of tensor b (256) at non-singleton dimension 1 HOT 1
- Error Float in Int64 HOT 1
- 看文章中的一些疑问 HOT 16
- 试运行detect.py上遇到的问题 HOT 3
- Cannot run detect.py HOT 2
- Modify the code for oriented bounding box HOT 2
- 在yolov5-5.0中只使用CRMA模块 HOT 7
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 drenet.