fartashf / vsepp

PyTorch Code for the paper "VSE++: Improving Visual-Semantic Embeddings with Hard Negatives"
Apache License 2.0
489 stars 125 forks source link

Can not run the train.py #3

Closed kevin8new closed 6 years ago

kevin8new commented 6 years ago

I have some trouble running the train.py, and I guess the problem is on the tensorboard_logger.

I use the pycharm to debug, and when it gets to the "import tensorboard_logger as tb_logger", the code stops and returns "Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)".

When I directly use the "python train.py --data_path "$DATA_PATH" --data_name coco_precomp --logger_name runs/coco_vse++ --max_violation", it only returns "Segmentation fault (core dumped)".

I firstly guess the problem is on the installation of tensorboard_logger, so I install it again, and run "import tensorboard_logger as tb_logger" in the python situation instead of bash, there is no error occurs.

Can anyone make a help to find the problem? Thx!

@fartashf

fartashf commented 6 years ago

That's unexpected. Can you get rid of all the lines related to tb_logger and try again? If it did not work, try running with ipython --pdb -- train.py .... That might catch segfault and give you more information about where it happened.

kevin8new commented 6 years ago

Thanks for you reply! I have already solved the problem !

Seems that there is some problem with my tensorflow and tensorboard_logger, so I reinstall them both, and the problem is solved.

fartashf commented 6 years ago

Thanks for reporting the fix.