Upgrade to latest tensorpack dependency: DQN.py returning a 'NotImplementedError'
See original GitHub issueThanks for your project. I got some troubles when I tried to reproduce your example ‘LandmarkDetection’.
- When I execute the command with your default setting , I get an error listed below that I cannot solve it. My environment is
- python 3.5.2
- tensorflow 1.13.1 cpu version
- tensorpack 0.9.4
- Ubuntu 16.04.6 LTS
# command
python3 DQN.py --task train --algo DQN --files './data/filenames/image_files.txt' './data/filenames/landmark_files.txt'
# error
Traceback (most recent call last):
File "DQN.py", line 263, in <module>
launch_train_with_config(config, SimpleTrainer())
File "/home/ty/.local/lib/python3.5/site-packages/tensorpack/train/interface.py", line 90, in launch_train_with_config
model.get_input_signature(), input,
File "/home/ty/.local/lib/python3.5/site-packages/tensorpack/utils/argtools.py", line 200, in wrapper
value = func(*args, **kwargs)
File "/home/ty/.local/lib/python3.5/site-packages/tensorpack/graph_builder/model_desc.py", line 92, in get_input_signature
return [TensorSpec(shape=p.shape, dtype=p.dtype, name=get_op_tensor_name(p.name)[0]) for p in inputs]
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/ty/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 5253, in get_controller
yield g
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/ty/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 5061, in get_controller
yield default
File "/home/ty/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 5253, in get_controller
yield g
File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/ty/.local/lib/python3.5/site-packages/tensorflow/python/eager/context.py", line 415, in _mode
yield
File "/home/ty/.local/lib/python3.5/site-packages/tensorflow/python/framework/ops.py", line 5253, in get_controller
yield g
File "/home/ty/.local/lib/python3.5/site-packages/tensorpack/graph_builder/model_desc.py", line 86, in get_input_signature
inputs = self.inputs()
File "/home/ty/.local/lib/python3.5/site-packages/tensorpack/graph_builder/model_desc.py", line 116, in inputs
raise NotImplementedError()
NotImplementedError
- according to a tensorpack issue ,
get_tf_version_number
was deprecated by tensorflow and you should useget_tf_version_tuple
in yourtensorpack-medical
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
cannot import name 'get_tf_version_number' · Issue #1122
While running the below line: from tensorpack.tfutils.common import ... Upgrade to latest tensorpack dependency: DQN.py returning a ...
Read more >Keras RL not implemented error from overwritten class ...
I've been working on an RL agent to do the Taxi problem in openai gym. I picked the DQNAgent from keras-rl and I...
Read more >tensorpack
Tensorpack is a neural network training interface based on TensorFlow. ... process large datasets (e.g. ImageNet) in pure Python with autoparallelization.
Read more >https://patch-diff.githubusercontent.com/raw/tenso...
With new unified backend between CPU and GPU mode, since the CuDNN kernel is ... + +This is not part of mixed_precision.py to...
Read more >A Neural Net Training Interface on TensorFlow, with focus ...
Tensorpack is a neural network training interface based on TensorFlow. ReadTheDoc Gitter chat model-zoo. Features: It's Yet Another TF high-level API, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ArjitJ It’s actually a version mismatch issue. After re-installing tensorpack to 0.8.0, it works fine now.
These are the changes needed to run “LandmarkDetection/DQN” with tensorpack master, following the tensorpack changelog: