FastMaskRCNN icon indicating copy to clipboard operation
FastMaskRCNN copied to clipboard

pyramid_network.py line 126 in _filter_negative_samples tf.assert_equal has error

Open hengshan123 opened this issue 6 years ago • 0 comments

When i run train.py, i get an error

ERROR:tensorflow: Object was never used (type <class 'tensorflow.python.framework.ops.Operation'>): <tf.Operation 'pyramid_2/assert_equal/Assert/Assert' type=Assert> If you want to mark it as used call its "mark_used()" method. It was originally created here: ['File "/home/hengshan/.conda/envs/tf/lib/python2.7/runpy.py", line 174, in _run_module_as_main\n "main", fname, loader, pkg_name)', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/runpy.py", line 72, in _run_code\n exec code in run_globals', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/pdb.py", line 1341, in \n pdb.main()', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/pdb.py", line 1314, in main\n pdb._runscript(mainpyfile)', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/pdb.py", line 1233, in _runscript\n self.run(statement)', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/bdb.py", line 400, in run\n exec cmd in globals, locals', 'File "", line 1, in ', 'File "train/train.py", line 339, in \n train()', 'File "train/train.py", line 193, in train\n loss_weights=[0.2, 0.2, 1.0, 0.2, 1.0])', 'File "train/../libs/nets/pyramid_network.py", line 588, in build\n mask_lw=loss_weights[4])', 'File "train/../libs/nets/pyramid_network.py", line 425, in build_losses\n tf.reshape(bbox_inside_weights, [-1, 4])', 'File "train/../libs/nets/pyramid_network.py", line 126, in _filter_negative_samples\n tf.assert_equal(tf.shape(t)[0], tf.shape(labels)[0])', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/site-packages/tensorflow/python/ops/check_ops.py", line 318, in assert_equal\n return control_flow_ops.Assert(condition, data, summarize=summarize)', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py", line 175, in wrapped\n return _add_should_use_warning(fn(*args, **kwargs))', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py", line 144, in _add_should_use_warning\n wrapped = TFShouldUseWarningWrapper(x)', 'File "/home/hengshan/.conda/envs/tf/lib/python2.7/site-packages/tensorflow/python/util/tf_should_use.py", line 101, in init\n stack = [s.strip() for s in traceback.format_stack()]'] Is someone know why?

hengshan123 avatar Oct 31 '17 02:10 hengshan123