【发布时间】:2018-08-15 03:20:34
【问题描述】:
我需要运行名为 train.py 的脚本,但我还需要设置 flas,方法是在 bash 中发出以下命令:
train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config
但是,它捕获了这个错误:
文件 “/Users/cvsanbuenaventura/miniconda3/lib/python3.6/site-packages/google/protobuf/text_format.py”, 第 1288 行,在 _ConsumeSingleByteString raise self.ParseError('String missing ending quote: %r' % (text,)) google.protobuf.text_format.ParseError: 123:17 : String missing ending 引用: '"/Users/cvsanbuenaventura/Documents/tensorflow/models/research/object_detection/train.record"'
所以我想在 Python Shell 或 Jupyter Notebook 中逐行调试。但是我还需要设置train_dir 标志。我该如何做到这一点?
【问题讨论】:
-
@pwxcoo 不是真的,我只需要知道如何在笔记本中设置标志
标签: python jupyter-notebook flags