-
Notifications
You must be signed in to change notification settings - Fork 4
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
Question about way to train instant segmentation model #3
Comments
Thanks for your attention!
1. Training an instance segmentation model
Training an instance segmentation model from scratch is not a very good idea.
The usage of using a pretrained semantic segmentation model trained on scannet achieved far better performance compared to training from scratch.
Since the instances segmentation model has the same network architecture as the semantic segmentation model (except for the final layer), I think the torch.load_state_dict should work as expected.
The strict=False is set to not take account of the final layer.
Could you check if the torch.load_state_dict(…, strict=False) changes all the parameters except for the last layer?
If it does change, then I think I updated the correct code for training instance segmentation model, if not, you’re welcome to contact me and I’ll figure out what the bug is :)
2. Regarding evaluation code
I currently do not have any plans for releasing the mAP code for validation split.
It’s due to the fact that it’s really messy, and currently, I do not have time for cleaning the messed up code.
I recommend you try the scanner original repo as a reference.
Sincerely,
Dongsu Zhang
… On Dec 14, 2020, at 9:18 PM, Dongwon Kim ***@***.***> wrote:
First of all, thank you for sharing the nice code!
In the paper, it is specified that the semantic model requires pre-trained MinkowskiNet.
However, for instant segmentation model, I'm not so clear whether I have to use pre-trained weight or not.
Training an instant segmentation model from scratch is enough to reproduce the result? Which setting did you use in your paper?
In code, It seems like SSEN load pre-trained mikowskiNet weight at the start of training. However, I found out that loading weight files using init() code of SemanticSegModel or InstantSegModel class does not work properly (Maybe strict=False could be the reason since preprocessing_semnatic.py works well.).
Do you have any plan to release the evaluation code(Which compute mAP) for validation split?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#3>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGKAYTLSGSEMZYJ24V52FGLSUX7CNANCNFSM4U2VA4RQ>.
|
Thank you for your quick reply!
Few more questions ..
|
Thanks for finding the bug!
Yes, the most frequently observed label is considered as the label of the cluster
… 2020. 12. 14. 오후 10:14, Dongwon Kim ***@***.***> 작성:
Thank you for your quick reply!
I rechecked the code, and I think the bug I found only occurs when initializing SemanticSegModel. For now, SemanticSegModel also loads weights except for the last layer, which is not intended. Overriding init_pretrained() in SemanticSegModel will fix this issue.
One more question. How do you determine the semantic class of the predicted instance cluster? Class that mostly occurred in the cluster?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
HEY! @96lives I have 2 questions now:
Hope to get your reply! |
Hope that answers the questions you asked! |
Thank you for your reply! Could I assume that: I should load exactly the same model pre-trained on semantic segmentation for both instance and semantic networks? if so, could I assume that loading a semantic model would also help an instance network to learn better? And should we freeze some layer after loading the model? Hope to get your reply! |
Yes! Please go to the google drive.
Yes, we saw that the pretrained model performed better than the ones that don't, and no, we did not freeze some layers. We did not try freezing any layers and do not know how it would behave. We think the semantic segmentation pretrained model provides a good initial weight for instance segmentation model. |
Many thanks! I get it now. Good luck in future research! Best, |
First of all, thank you for sharing the nice code! I have a few questions ...
In the paper, it is specified that the semantic model requires pre-trained MinkowskiNet.
However, for instant segmentation model, I'm not so clear whether I have to use pre-trained weight or not.
Training an instant segmentation model from scratch is enough to reproduce the result? Which setting did you use in your paper?
In code, It seems like SSEN load pre-trained mikowskiNet weight at the start of training. However, I found out that loading weight files using init() code of SemanticSegModel or InstantSegModel class does not work properly (Maybe strict=False could be the reason since preprocessing_semnatic.py works well.).
Do you have any plan to release the evaluation code(Which compute mAP) for validation split?
The text was updated successfully, but these errors were encountered: