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

some questions about loce #2

Closed
sanmulab opened this issue May 23, 2022 · 7 comments
Closed

some questions about loce #2

sanmulab opened this issue May 23, 2022 · 7 comments

Comments

@sanmulab
Copy link

Hi author, thank you for your excellent work! I have some questions:

  1. Can MFS be applied to other loss functions, such as EQLv2 and Seesaw Loss, have you done these experiments?
  2. The decoupling training only trains 6 epochs. Will this be too little? Will training more epochs still improve AP?
@fcjian
Copy link
Owner

fcjian commented May 30, 2022

  1. MFS is independent with the loss function, and can be applied to other loss functions theoretically, but we didn't conduct the experiments on EQLv2 and Seesaw Loss.
  2. We fine-tune the model for 6 epochs following the previous works such as BALMS, and we didn't fine-tune the model for more epochs.

@sanmulab
Copy link
Author

sanmulab commented Jun 1, 2022

Thanks for your reply!

@sanmulab
Copy link
Author

sanmulab commented Jun 3, 2022

Hi! I have one last question: how to use MFS alone for training, and how should I modify the config or code? In addition to replacing the EBL loss function, do I need to modify LoceRoIHead?

@fcjian
Copy link
Owner

fcjian commented Jun 8, 2022

Hi! I have one last question: how to use MFS alone for training, and how should I modify the config or code? In addition to replacing the EBL loss function, do I need to modify LoceRoIHead?

For the config, you should modify the loss configure:

For the code, you should modify the loss inputs:

@sanmulab
Copy link
Author

sanmulab commented Jun 8, 2022

Sorry, I still don't know which loss parameters need to be modified. If I just use CrossEntropyLoss+MFS for training, then which parameters should I modify in loce_convfc_bbox_head.py:
losses['loss_cls'] = self.loss_cls(
cls_score,
labels,
label_weights,
mean_score,
avg_factor=avg_factor,
reduction_override=reduction_override)

@fcjian
Copy link
Owner

fcjian commented Jun 8, 2022

You should remove mean_score.

And you can refer to the code:

@sanmulab
Copy link
Author

sanmulab commented Jun 8, 2022

Thank you!

@sanmulab sanmulab closed this as completed Jun 8, 2022
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

2 participants