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 not determine dataset/checkpoint directory? #17

Open
deng29 opened this issue Mar 28, 2021 · 3 comments
Open

Could not determine dataset/checkpoint directory? #17

deng29 opened this issue Mar 28, 2021 · 3 comments

Comments

@deng29
Copy link

deng29 commented Mar 28, 2021

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=<PATH_TO_DATASET>
export IFN_DIR_CHECKPOINT=<PATH_TO_CHECKPOINTS>
I don't know what caused the error.

@klingner
Copy link
Contributor

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
Copy link

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=<PATH_TO_DATASET>
export IFN_DIR_CHECKPOINT=<PATH_TO_CHECKPOINTS>
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
Copy link
Contributor

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.

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

3 participants