Comments (8)
我不太懂你的意思,直接预测是对的吗,如果是这样就是获得的用于计算map的txt有错了。
from efficientdet-pytorch.
计算map的txt有错
感谢回复。我的class number是1。
我计算map的步骤是,
1 先运行了get_dr_txt.py
2 我有ground truth的bounding box文件,没有运行get_gt_txt.py
3 最后运行get_map.py
出现的问题,
1.当运行get_dr_txt.py,如果设置confidence 和iou threshold大于0.2时,3500张图片里大约只有600张能被识别出文字。
2 无论我将confidence 和iou threshold设为0.05或者0.5,通过get_dr_txt.py得到多少txt文件,当我运行get_map.py时绝大部分的图片都会被归为false positive。从而导致precision,recall and mAP均为0. 不过当我拿训练后的weight来预测bounding box,它在不同的图片上能正确的框出文字部分。所以即使mAP不高,我猜它也不太可能是0啊。
所以现在不太懂问题出在哪里,是需要修改nms那里,还是get_map这个文件,抑或是什么别的地方?
谢谢啦~
from efficientdet-pytorch.
还是按默认参数来进行map计算,把模型修改成自己的就可以了
然后你检查一下对应的txt,就是input文件夹里面的txt,你看看结果的格式是否正确
from efficientdet-pytorch.
因为只是这样我看不出来,我得从对应的txt的结果来判断
from efficientdet-pytorch.
还是按默认参数来进行map计算,把模型修改成自己的就可以了
然后你检查一下对应的txt,就是input文件夹里面的txt,你看看结果的格式是否正确
好的谢谢,我先试一下。
from efficientdet-pytorch.
重要的是查看一下txt的正误
from efficientdet-pytorch.
一般说来是类别标签的问题,我的就是改了EfficientNet.py下面的"classes_path" : 'model_data/coco_classes.txt' 以及get_map.py下面的classes_path = 'model_data/voc_classes.txt'为自己数据集的实际类别名之后就好了。
from efficientdet-pytorch.
嗯是
from efficientdet-pytorch.
Related Issues (20)
- 训练自己的数据,mAP很低 HOT 2
- 用predict.py计算fps时出现的问题 HOT 1
- 关于feature_size HOT 5
- 输入图片 HOT 1
- 运行train.py出现问题 HOT 7
- bifpn中加权聚合时(简单的注意力机制),权重参数不更新问题 HOT 10
- 关于pretrain, 主干权值加载报错 HOT 1
- loss问题 HOT 2
- 如何将训练好的.pth权重和模型转换为 .onnx or .pb通用模型文件 HOT 1
- 下载预训练权值出现问题:无效哈希值 HOT 5
- 您好,想问一下,训练参数一致,最终结果不一样 HOT 1
- 你好,在获得训练用的2007_train.txt、2007_val.txt存在一些问题 HOT 2
- 关于loss函数的问题:在github代码efficientdet-pytorch/nets/efficientdet_training.py L48-L50,"重合度小于0.4需要参与训练 ",是否应该是"重合度大于0.4需要参与训练 "? HOT 1
- 关于先验框
- 标签框筛选问题 HOT 1
- 请问efficiendet检测小目标的效果怎么样?我2048*2048的图片目标大小为16*16,好像检测不出来。 HOT 4
- RuntimeError: CUDA error: device-side assert triggered HOT 3
- predict遇到问题 HOT 1
- train.py
- map太低
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 efficientdet-pytorch.