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

freeze_at be set to 2 to freeze the pretrained weight downloaded from the official website? #89

Closed
aihcyllop opened this issue Jul 18, 2023 · 2 comments
Labels
question Further information is requested

Comments

@aihcyllop
Copy link

In the dinated neighborhood transformer, run instance segmentation on coco,
How to freeze the pretrained weight downloaded from the official website? Should freeze_at be set to 2?

@alihassanijr
Copy link
Member

Thanks for your interest.
If you're referring to the mask rcnn experiments, it should be set to 5 to freeze the entire backbone.
The default, -1, does not freeze anything, 0 freezes only the patch embedding, 1 is ineffective because there is no absolute positional embedding to be frozen, 2 freezes the first of the 4 transformer encoder blocks, all the way through 5, which would freeze everything.

However, note that if your intention is only to run inference, you do not need to do any of this, and can simply refer to the inference scripts.

@alihassanijr alihassanijr added the question Further information is requested label Jul 22, 2023
@alihassanijr
Copy link
Member

Closing due to inactivity. Feel free to reopen if you still have questions.

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