liuheng92 / tensorflow_PSENet

This is a tensorflow re-implementation of PSENet: Shape Robust Text Detection with Progressive Scale Expansion Network.My blog:

Home Page:https://blog.csdn.net/liuxiaoheng1992/article/details/87646951

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while running script please help!

nbhupendra opened this issue · comments

tf.app.run()

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run
_sys.exit(main(argv))
File "eval.py", line 171, in main
model_path = os.path.join(FLAGS.checkpoint_path, os.path.basename(ckpt_state.model_checkpoint_path))
AttributeError: 'NoneType' object has no attribute 'model_checkpoint_path'

running below command-
python3.6 eval.py --test_data_path=./tmp/images/ --gpu_list=0 --checkpoint_path=./resnet_v1_50/--output_dir=./tmp/

Note- I have resnet_v1_50.ckpt file under resnet_v1_50 directory.

Please help.;

commented

remove os.path.basename(ckpt_state.model_checkpoint_path))