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

finetune on custom dataset with provided model #474

Open
adam99goat opened this issue Jun 8, 2023 · 1 comment
Open

finetune on custom dataset with provided model #474

adam99goat opened this issue Jun 8, 2023 · 1 comment

Comments

@adam99goat
Copy link

Hi, thanks for excellent work! Here I have trouble on custom dataset.
I tried to train on my endoscopic monocular dataset and obtain a decent result. Furthermore, I am wondering if the result will be improved if a better pretrained model rather than ImageNet-1K is loaded. Actually, I have loaded the provided KITTI mono+stereo_640x192 pth files to finetune model on endoscopic monocular dataset. However, the model has suffered from degradation, which means the relative error is worse than the model finetuned on ImageNet-1K pth files. Specifically, I have tried two weight loading modes, which are both-encoder-decoder and encoder-only. Perhaps a KITTI-trained model is not suitable for endoscopic scenes. I am not sure if I loaded the weights incorrectly. If that's the case, would it be possible for you to provide me with some empirical advice?
Look forward to your reply~

@daniyar-niantic
Copy link
Collaborator

Hi @adam99goat
I agree that KITTI-trained model is not necessarily suitable for endoscopic images. Monodepth2 in most of experiments uses ImageNet-pretrained weights to initialize the encoder. The main reason is that it allows faster convergence of the network and, as a result, better scores. So, if you can try training a randomly initialized network (non-pretrained) and compare the results it would confirm that the weights loading is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants