dBeker / Faster-RCNN-TensorFlow-Python3

Tensorflow Faster R-CNN for Windows/Linux and Python 3 (3.5/3.6/3.7)
MIT License
609 stars 329 forks source link

absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'net'. Did you mean: network ? #32

Closed xupinjie closed 6 years ago

xupinjie commented 6 years ago

i run the demo.py, then met the problem following: Traceback (most recent call last): File "D:/7-xpj/github/Faster-RCNN-TensorFlow-Python3.5-master/demo.py", line 144, in <module> net.create_architecture(sess, "TEST", 21, tag='default') File "D:\7-xpj\github\Faster-RCNN-TensorFlow-Python3.5-master\lib\nets\network.py", line 283, in create_architecture weights_regularizer = tf.contrib.layers.l2_regularizer(cfg.FLAGS.weight_decay) File "C:\Anaconda2\envs\tensorflow\lib\site-packages\tensorflow\python\platform\flags.py", line 84, in __getattr__ wrapped(_sys.argv) File "C:\Anaconda2\envs\tensorflow\lib\site-packages\absl\flags\_flagvalues.py", line 630, in __call__ name, value, suggestions=suggestions) absl.flags._exceptions.UnrecognizedFlagError: Unknown command line flag 'net'. Did you mean: network ?

xupinjie commented 6 years ago

just change tf.app.flags.DEFINE_string('network', "vgg16", "The network to be used as backbone") to tf.app.flags.DEFINE_string('net', "vgg16", "The network to be used as backbone") in file \lib\config\config.py