-
Notifications
You must be signed in to change notification settings - Fork 9
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
Training depth image #6
Comments
We adopt a pre-trained model [1] to predict the depth. You can use the same model to predict the depth of your own dataset. Be careful that the depth images we load are saved as grayscale images ranging from 0 to 255. Or, you can set depth_num = 1 (line59 at https://github.com/nie-lang/Multi-Grid-Deep-Homography/blob/main/Codes/loss_functions.py) to train a model without depth awareness. [1] K. Xian, J. Zhang, O. Wang, L. Mai, Z. Lin, and Z. Cao, “Structure-guided ranking loss for single image depth prediction,” in The IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. |
Thank You! But When I training without depth assistance in my own dataset, another question occurs: Traceback (most recent call last): Is there something wrong with my own dataset? |
Please create the depth folder although you do not use it. For example, copy the 'input1' folder and rename it as "depth2". |
OK, It works. Thank you ! |
Excuse me, how can I get the training depth image? It seems doesn't work when I training with my own dataset.
The text was updated successfully, but these errors were encountered: