cnn-text-classification-tf
cnn-text-classification-tf copied to clipboard
I run train.py and then run eval.py, have error,could you help me please!
Traceback (most recent call last):
File "D:/Projects/PythonProject/TensorFlow/cnn-text-classification-tf-master01/eval.py", line 71, in
I met the same problem too.
When you run eval.py, make sure there is no white-space in
python eval.py --eval_train --checkpoint_dir=./runs/1459637919/checkpoints/
or
./eval.py --eval_train --checkpoint_dir="./runs/1459637919/checkpoints/"
(Do not put white-spaces around the '=' sign. )
Then, check the first lines of output, and see if line starting with "CHECKPOINT_DIR" refers to your checkpoints directory.
did u try to run train.py
and eval.py
at the same time ? plz consider memory issue
i had to remap the model, checkpoints, and vocab file in the eval step. works now.
python2 eval.py --eval_train --checkpoint_dir="./runs/1507082809/checkpoints/" --model="./runs/1507082809/checkpoints/model-1000" --vocab_filepath="./runs/1507082809/checkpoints/vocab"
i met the same problem too. i use python3.5 and tensorflow1.2.1 in win7. i think it's not the command line problem as @sighsmile said. And i don't konw what to do to deal whit it now.
i replaced the tensorflow.contrib.learn.preprocessing.VocabularyProcessor.restore(vocab_path) with pickle and it works, but i still don't konw why restore(vocab_path) didn't work
can any one please explain how to do what goyidao did in windows ie how to replace the tensorflow.contrib.learn.preprocessing.VocabularyProcessor.restore(vocab_path) with pickle