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

how to train #4

Open
Ericchen328 opened this issue Apr 3, 2024 · 3 comments
Open

how to train #4

Ericchen328 opened this issue Apr 3, 2024 · 3 comments

Comments

@Ericchen328
Copy link

I have my own dataset and want to train this model on my own dataset but i didn‘t see the detail of how to train

@lpiccinelli-eth
Copy link
Owner

lpiccinelli-eth commented Apr 3, 2024

We have not released the training code, yet, and we are trying to release it soon.

In the meantime, you can find the losses under unidepth/ops/losses.py (SILog as depth loss, MSE as camera prediction loss and SelfCons as invariance loss) and UniDepth as a single input-output block, and you can use your own dataloading and training pipeline. We will push changes such that the forward method is like an input-output function that can be used for further training.

Remember that UniDepth expects the input shape as 462x616.

@CDchenlin
Copy link

Thank you for your great work. I wonder if you have a timeline for the training code release?

@lpiccinelli-eth
Copy link
Owner

The code for training has been made public in the PR #76 , although still not 100% sure it will run smoothly, you can try it out.

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

3 participants