Closed kkjh0723 closed 4 years ago
@kkjh0723 You could try exporting the path to env variable PYTHONPATH:
export PYTHONPATH=$PYTHONPATH:[PATH TO YOUR DIR]/densecap
Would be helpful to add that for the submodule coco-caption
as well:
export PYTHONPATH=$PYTHONPATH:[PATH TO YOUR DIR]/densecap/tools/densevid_eval/coco-caption
I get the same error for train.py and I dont know what to do. I am new to this. Should write like this when I run - "--export PYTHONPATH=...." ?
No, you are setting environment variables. So, you need to run these before your python command.
Thank you. It worked!
I have one other question, do I need to write the $id in " --checkpoint_path ./checkpoint/$id" ? Because I am getting this error - train.py: error: unrecognized arguments: --checkpoint_path ./checkpoint/ --cuda
When I run following command,
I got the following error,
It seems that the issue related to the python path. When I copy the
test.py
to the root directory, then it runs without any error. How to make it run without copying the file to the root directory?