Giter Club home page Giter Club logo

Comments (8)

bubbliiiing avatar bubbliiiing commented on June 19, 2024

我不太懂你的意思,直接预测是对的吗,如果是这样就是获得的用于计算map的txt有错了。

from efficientdet-pytorch.

jiansfoggy avatar jiansfoggy commented on June 19, 2024

计算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.

bubbliiiing avatar bubbliiiing commented on June 19, 2024

还是按默认参数来进行map计算,把模型修改成自己的就可以了
然后你检查一下对应的txt,就是input文件夹里面的txt,你看看结果的格式是否正确

from efficientdet-pytorch.

bubbliiiing avatar bubbliiiing commented on June 19, 2024

因为只是这样我看不出来,我得从对应的txt的结果来判断

from efficientdet-pytorch.

jiansfoggy avatar jiansfoggy commented on June 19, 2024

还是按默认参数来进行map计算,把模型修改成自己的就可以了
然后你检查一下对应的txt,就是input文件夹里面的txt,你看看结果的格式是否正确

好的谢谢,我先试一下。

from efficientdet-pytorch.

bubbliiiing avatar bubbliiiing commented on June 19, 2024

重要的是查看一下txt的正误

from efficientdet-pytorch.

LvShuaiChao avatar LvShuaiChao commented on June 19, 2024

一般说来是类别标签的问题,我的就是改了EfficientNet.py下面的"classes_path" : 'model_data/coco_classes.txt' 以及get_map.py下面的classes_path = 'model_data/voc_classes.txt'为自己数据集的实际类别名之后就好了。

from efficientdet-pytorch.

bubbliiiing avatar bubbliiiing commented on June 19, 2024

嗯是

from efficientdet-pytorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.