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

Could you provide the results after the setup_dataset_kitti.py, please? #1

Closed
Jue-Jue-511 opened this issue Nov 15, 2021 · 7 comments
Closed

Comments

@Jue-Jue-511
Copy link

Thank you very much for providing this code!
but i still have a little question :
The path you provide in the setup_dataset_kitti.py doesn't seem to be an dirpath, so there were a lot of empty txt files after I ran the code.
in line 258 :
sequence = sparse_depth_paths[0].split(os.sep)[5]
sequence_date = sequence[0:10]
When I debug the code,the sequence is 'data' so the sequence_data is 'data' but i think its wrong
im look forward to your answer

@alexklwong
Copy link
Owner

Can you provide your data directory hierarchy?
You can do something like

ls data/
ls data/kitti_raw_data
ls data/kitti_depth_completion

@Jue-Jue-511
Copy link
Author

(base) juejue@hzd:/home/data/JueJue/calibrated-backprojection-network$ ls data/
kitti_depth_completion kitti_raw_data
(base) juejue@hzd:/home/data/JueJue/calibrated-backprojection-network$ ls data/kitti_raw_data
2011_09_26 2011_09_28 2011_09_29 2011_09_30 2011_10_03 data_splits LICENSE.md
(base) juejue@hzd:/home/data/JueJue/calibrated-backprojection-network$ ls data/kitti_depth_completion
testing train_val_split validation

@Jue-Jue-511
Copy link
Author

thank u for ur reply ,i have found the problem

mv /home/data/JueJue/calibrated-backprojection-network/setup/setup_dataset_kitti.py
/home/data/JueJue/calibrated-backprojection-network/

after this action , the program is work

@alexklwong
Copy link
Owner

Strange, the base directories seem to match

I just ran the set up locally and it worked. Maybe some subdirectories do not match.

Can you print
print(sparse_depth_paths[0:5])
at
https://github.com/alexklwong/calibrated-backprojection-network/blob/master/setup/setup_dataset_kitti.py#L251

and also print
print(sequence, sequence_date)
print(raw_sequence_dirpath)
print(image_paths[0:5])
at
https://github.com/alexklwong/calibrated-backprojection-network/blob/master/setup/setup_dataset_kitti.py#L268)

@alexklwong
Copy link
Owner

Was your data folder inside calibrated-backprojection-network?

@Jue-Jue-511
Copy link
Author

my data folder is ./calibrated-backprojection-network/data/
and the setup_dataset_kitti.py path is ./calibrated-backprojection-network/setup/setup_dataset_kitti.py
when i run the python file ,the The current path is ./calibrated-backprojection-network/setup/....
for example

KITTI_RAW_DATA_DIRPATH = os.path.join('data', 'kitti_raw_data')

the result is data/kitti_raw_data the abspath is ./calibrated-backprojection-network/setup/data/kitti_raw_data
which is wrong
when i move setup_dataset_kitti.py to ./calibrated-backprojection-network/setup_dataset_kitti.py
the abspath is ./calibrated-backprojection-network/data/kitti_raw_data
whcih is right

@alexklwong
Copy link
Owner

Ah I see, for the setup scripts I assume that you are inside the base directory of the repository (calibrated-backprojection-network) e.g.

calibrated-backprojection-network <----- run the commands while you are inside this folder here
|
|----- data
|----- setup
|----- src

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