-
Notifications
You must be signed in to change notification settings - Fork 359
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 in MegaDepth without D2-Net data #276
Comments
Or shall I download that Megadepth sfm data to replace the D2Net Data? |
You need to change the NPZ files in index. Before training, I ran this script:
Then also run the following script to make sure all images have the ending 'jpg' (there are some hidden JPG and pngs in the dataset :) )
Then, I changed the following lines in LoFTR/configs/data/megadepth_trainval_640.py:
Lastly you need to typecast to dict in line 47 in LoFTR/src/datasets/megadepth.py:
Hope everything works! |
hey i'm also tring to reproduce the training process, and i'm a Chinese student too, can i have your contact information so that i can discuss some questions abouit this project with you? |
Sure, wechat number 1065043641 :) |
Thanks for your careful guide! but the last step may be a bit of confusion.
|
sorry for disturbing you, im a Chinese student too, i wonder if i can also add your wechat for consulting some problem about loftr's train. |
|
thanks,Use this code, replace your last sentence, I've trained it, thank you |
你好,问下你最后使用200g进行训练的吗,最后结果怎么样 |
你好,在我运行第一个脚本之后,报出错误:没有scene_info_0.1_0.7_no_sfm这个文件,请问我应该怎么办 |
I use 200g Megadepth datasets for training successfully, but my GPU mem is 12G, so when I train LoFTR model arising out of memory. |
Hi authors, thanks for your great works!
I see the F&Q, since we cannot reach D2_net pre-processing data anymore, you suggest us to use MegaDepth directly.
May I ask how to use it for training? Like when we build the symlink, how could the training be done?
Could you please update a new guidance for training?
ln -sv /path/to/megadepth/phoenix /path/to/LoFTR/data/megadepth/train
ln -sv /path/to/megadepth/phoenix /path/to/LoFTR/data/megadepth/test
ln -s /path/to/megadepth_indices/* /path/to/LoFTR/data/megadepth/index
Are the above codes correct? Or how could we use the data?
The text was updated successfully, but these errors were encountered: