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

你好,RSP-ResNet-50-E300给出的模型是训练好的权重吗? #8

Open
lucky85712 opened this issue Oct 8, 2023 · 10 comments
Open

Comments

@lucky85712
Copy link

我用于其他的航空数据集目标检测,性能与imagenet给出的预训练模型的性能相差很多,想问一下这个百度网盘给出的权重是已经训练好的吗?

@DotWang
Copy link
Collaborator

DotWang commented Oct 8, 2023

@lucky85712 是预训练好的权重,如果精度差很多的话,麻烦检查一下权重是不是真的加载进去了

@lhmtrinh
Copy link

lhmtrinh commented Nov 23, 2023

Hi @DotWang I have the same problem:
I loaded the model checkpoint as follow and attempt to predict on several images of MillionAid dataset. They are not correct. Can you please help?

image

I verified that the weights are indeed loaded:
image

Many many thanks.

@lucky85712
Copy link
Author

lucky85712 commented Nov 23, 2023 via email

@lhmtrinh
Copy link

did you end up using anything else? :)

@lucky85712
Copy link
Author

lucky85712 commented Nov 23, 2023 via email

@lhmtrinh
Copy link

lhmtrinh commented Nov 23, 2023

@lucky85712 Ok thanks. It won't help me much, however.

@DotWang
Copy link
Collaborator

DotWang commented Nov 24, 2023

@lhmtrinh https://github.com/ViTAE-Transformer/RSP/tree/main/Object%20Detection

我不确定你是拿什么程序跑的,我们是拿OBBDetection,这里有config和log

@littlelight-hhr
Copy link

嗨,我有同样的问题:我按如下方式加载了模型检查点,并尝试对 MillionAid 数据集的几张图像进行预测。它们是不正确的。你能帮忙吗?

图像

我验证了权重确实已加载: 图像

非常感谢。

Hi, do you solve the problem?

@WenLinLliu
Copy link

我也发现给出来的预训练权重相比于imagenet差很多

@DotWang
Copy link
Collaborator

DotWang commented Nov 7, 2024

@lucky85712 @lhmtrinh @littlelight-hhr @WenLinLliu

After checking, we have found that the issue is caused by the saved checkpoint, which contains model weight, optimizer parameter. and so on, as shown in https://github.com/ViTAE-Transformer/RSP/blob/main/Scene%20Recognition/main.py/#L214

So, when using the uploaded checkpoint, e.g., RSP-ResNet-50-E300.pth, please extract the model weight manually

In addition, we have validated the performance training on a single GPU, where the batch size for DOTA is 2, as presented in the RSP paper.

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

5 participants