Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问rt-detr使用dab-detr的宽高调制了嘛 #45

Open
flyingbird9 opened this issue Aug 24, 2023 · 5 comments
Open

请问rt-detr使用dab-detr的宽高调制了嘛 #45

flyingbird9 opened this issue Aug 24, 2023 · 5 comments

Comments

@flyingbird9
Copy link

在代码的哪个部分呢

@flyingbird9
Copy link
Author

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

@lyuwenyu
Copy link
Owner

lyuwenyu commented Aug 25, 2023

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

@flyingbird9
Copy link
Author

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

@Zhao-Yian
Copy link
Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants