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

Error while training on custom_coco dataset #5

Open
anandguptatoothlens opened this issue Jul 23, 2024 · 1 comment
Open

Error while training on custom_coco dataset #5

anandguptatoothlens opened this issue Jul 23, 2024 · 1 comment
Labels
question Further information is requested

Comments

@anandguptatoothlens
Copy link

anandguptatoothlens commented Jul 23, 2024

Question

Hi @xiuqhou ,I wanted to train Relation_detr on my custom coco_dataset but getting error.
image
how can i resolve this?

Additional

Also please suggest me some fine tunning strategy that should i follow for more accuracy

No response

@anandguptatoothlens anandguptatoothlens added the question Further information is requested label Jul 23, 2024
xiuqhou added a commit that referenced this issue Jul 23, 2024
@xiuqhou
Copy link
Owner

xiuqhou commented Jul 23, 2024

Hi there,
Thank you for helping us find a bug. This error occurred in some versions of pytorch, which we did not encounter in the initial code test. Now that we have fixed it in our latest code, please use our updated repository and try again!

To get better accuracy, we have some suggestions:

  1. Make sure learning rate follows the linear scaling rule with total batch_size. If total_batch_size increases k times, learning rate should be increased k times. We set learning_rate=1e-4 for batch_size=5 and 2 GPUs (total_batch_size=5 * 2=10). If you use batch_size=2 and 1 GPU (total_batch_size=2), for example, you should change learning rate to 2e-5.
  2. If you just want better performance, instead of making a fair comparison with other methods in a paper. You can use a stronger data_augmentation. Set transform in configs/train_config.py to presets.strong_album will increase accuracy.
  3. And remember to use larger backbones and load pretrained weight. We will update more pretrained weight in the next few weeks.

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

No branches or pull requests

2 participants