Giter VIP home page Giter VIP logo

Comments (5)

lyuwenyu avatar lyuwenyu commented on July 24, 2024

rtdetr的reference box的逻辑
https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetr_paddle/ppdet/modeling/transformers/rtdetr_transformer.py#L210
https://github.com/lyuwenyu/RT-DETR/blob/main/rtdetr_paddle/ppdet/modeling/transformers/rtdetr_transformer.py#L62

from rt-detr.

flyingbird9 avatar flyingbird9 commented on July 24, 2024

谢谢,请问我运行pytorch版本遇到了这个问题,请问是什么原因呢
屏幕截图 2023-08-25 101152

from rt-detr.

lyuwenyu avatar lyuwenyu commented on July 24, 2024

自己的数据还是? 另外torch的版本需要 torch==2.01

from rt-detr.

flyingbird9 avatar flyingbird9 commented on July 24, 2024

我用的自己的数据,但是在paddle下能跑,我用的cpu 版本,torch是2.0.1

from rt-detr.

Zhao-Yian avatar Zhao-Yian commented on July 24, 2024

自己的数据需要保证处理成coco格式,其中image_id需要是int类型,并且和图像文件名一一对应,否则使用torchvision.datasets.CocoDetection在按索引读取数据的时候会抛出异常。

另外,使用自己的数据注意一下这两个变量有没有正确设置,比如自定义数据集有7个非背景类别,那么num_classes需要设置为8(+背景类),remap_mscoco_category需要设置为False.
image

from rt-detr.

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.