ifnspaml / SGDepth

[ECCV 2020] Self-Supervised Monocular Depth Estimation: Solving the Dynamic Object Problem by Semantic Guidance
MIT License
200 stars 26 forks source link

Could not determine dataset/checkpoint directory? #17

Open deng29 opened 3 years ago

deng29 commented 3 years ago

Hello,I have set the environment variables of Checkpoint and Dataset under ~/.bashrc,like this export IFN_DIR_CHECKPOINT=/home/SGDepth/Checkpoints export IFN_DIR_DATASET=/home/SGDepth/Dataset Checkpoint and Dataset is the directory I created under SGDepth.But when I run download_kitti.py to get the kitti dataset, I get an error,like this ValueError: Could not determine dataset/checkpoint directory. You can use environment variables to specify these directories by adding lines like the following to your ~/.bashrc: export IFN_DIR_DATASET= export IFN_DIR_CHECKPOINT= I don't know what caused the error.

klingner commented 3 years ago

Hello, did you also execute the command "source ~/.bashrc" after updating it? Otherwise, the changes are not executed. Otherwise I do not see any error sources, I have to admit... you could maybe check, if the environment variable is found under the correct name on your OS.

SuperSivan commented 3 years ago

Hello,I have set the environment variables of Checkpoint and Dataset under ~/.bashrc,like this export IFN_DIR_CHECKPOINT=/home/SGDepth/Checkpoints export IFN_DIR_DATASET=/home/SGDepth/Dataset Checkpoint and Dataset is the directory I created under SGDepth.But when I run download_kitti.py to get the kitti dataset, I get an error,like this ValueError: Could not determine dataset/checkpoint directory. You can use environment variables to specify these directories by adding lines like the following to your ~/.bashrc: export IFN_DIR_DATASET= export IFN_DIR_CHECKPOINT= I don't know what caused the error.

hello,I get the same problem.My solution is finding the get_path.py in this project,and change the the function "_guess_by_env",hope this way will help you.

klingner commented 3 years ago

Very strange,

I have to admit that I still cannot reproduce this error. I heard from a collegue though that he has this problem from time to time when mounting external drives and loading the data from there (but also only when using the Pycharm console, which somehow means that this is not about the mounting but rather about the Pycharm settings). I guess, if you intend to run the code just on one machine, then you could also just hard-code the data and checkpoint paths in the code instead of using environment variables.