Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>): #48

Open
kriz232121 opened this issue Dec 1, 2019 · 1 comment

Comments

@kriz232121
Copy link

i follow the instruction of
https://github.com/EdjeElectronics/TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10
Tensorflow 1.14-gpu
cuda10
cnn10.1
but when i used python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_coco.config
i have the problem

E1130 23:32:13.621114 22540 tf_should_use.py:71] ==================================
Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>):
<tf.Tensor 'init_ops/report_uninitialized_variables/boolean_mask/GatherV2:0' shape=(?,) dtype=string>
If you want to mark it as used call its "mark_used()" method.
It was originally created here:
File "train.py", line 184, in
tf.app.run() File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\platform\app.py", line 40, in run
_run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef) File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 321, in run
raise File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\absl\app.py", line 250, in _run_main
sys.exit(main(argv)) File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\util\deprecation.py", line 324, in new_func
return func(*args, **kwargs) File "train.py", line 180, in main
graph_hook_fn=graph_rewriter_fn) File "C:\Users\tensorflow\models\research\object_detection\legacy\trainer.py", line 416, in train
saver=saver) File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\tensorflow\contrib\slim\python\slim\learning.py", line 796, in train
should_retry = True File "D:\Users\Cristian\Miniconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 193, in wrapped
return _add_should_use_warning(fn(*args, **kwargs))

@letchfordnicholas
Copy link

I have the same problem. I have no idea how to fix it though... :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants