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

FileNotFoundError: [Errno 2] No such file or directory: 'VA/replica_train.txt' #21

Open
Cresynia opened this issue Feb 19, 2023 · 5 comments

Comments

@Cresynia
Copy link

Cresynia commented Feb 19, 2023

i want to make evaluation on VA
when i ran bash eval.sh, it said FileNotFoundError: [Errno 2] No such file or directory: 'VA/replica_train.txt'
FileNotFoundError: [Errno 2] No such file or directory: 'VA/UE4_left_all.txt'

i changed train_filenames and val_filenames in execute_func.py to VA and then FileNotFoundError: [Errno 2] No such file or directory: 'VA/VA_all.txt'
where can i get VA_all.txt

where can i get that file or anything else i need to pay attention to
maybe somewhere else i made errors,i'm a little confused and the first time to ran(a beginner),hope you can give some help,thanks!

@choyingw
Copy link
Collaborator

choyingw commented Feb 27, 2023

@Cresynia Thank you for raising the issue.

Here are the missing files:
VA_left_all.txt https://drive.google.com/file/d/14rY4A3FQ4t9X7i6z2ol2PSK4i0UfHAPN/view?usp=share_link
replica_train.txt https://drive.google.com/file/d/1xoMex0-WNJZPAZByJXd7TIVSl2GiIJwS/view?usp=share_link
replica_test_sub.txt https://drive.google.com/file/d/1JfR9ZQm9LY-FHTsFnPvds3wdHgf6TlH-/view?usp=share_link

Note that we didn't officially split SimSIN and VA into train/test split in paper. In paper we train on large SimSIN, and the path file is on the project page. (SimSIN_release2.txt https://distdepth.github.io/all_large_release2.txt). The test files in the code are some easy hacks to verify the training procedure (so we set to replica_test_sub.txt)

For evaluation on VA, you van just set eval file to VA_left_all. You can also follow the .txt format and train/test on your data. Please let me know if you have further questions.

@Cresynia
Copy link
Author

Thanks!I made it!
And I want to visualize the predicted depth maps. When I ran : python execute.py --exe eval_save --log_dir='./tmp' --data_path VA --dataset VA --batch_size 1 --load_weights_folder ckpts-distdepth-152-SimSIN-DPTLegacy --models_to_load encoder depth --width 256 --height 256 --max_depth 10 --frame_ids 0 --num_layers 152
it said: img = img.cpu().numpy().squeeze().transpose(0,2,3,1) ValueError: axes don't match array
I don't know where I made errors.

@choyingw
Copy link
Collaborator

choyingw commented Feb 27, 2023 via email

@Cresynia
Copy link
Author

Oh! I'm going to learn the code and try it! Thanks for your answer sincerely!

@Cresynia
Copy link
Author

What is 'approx_alignment' in the execute_func.py
When I ran
python execute.py --exe eval_save --log_dir='./tmp' --data_path VA --dataset VA --batch_size 4 --load_weights_folder ckpts-distdepth-152-SimSIN-DPTLegacy --models_to_load encoder depth --width 256 --height 256 --max_depth 10 --frame_ids 0 --num_layers 152
it said----AttributeError: 'Trainer' object has no attribute 'approx_alignment',and I couldn't find its initialization.
Can I remove it like this?----depth = outputs[('depth', 0, 0)]
(the original one-----depth = outputs[('depth', 0, 0)] * self.approx_alignment)
when I do this,I can get the results,but because I'm not clear about the code and still need to learn a lot,so I want to ask if it's correct.
Really thanks for your help!

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

2 participants