Comments (4)
Hi, I am trying to reproduce the results using the pretrained model. But it gives me errors :
python avg_runner.py -l ./Models/Adversarial/model.ckp
t-500000 -t ./Data/Test
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Init discriminator...
Init generator...
Init variables...
Traceback (most recent call last):
File "avg_runner.py", line 185, in
main()
File "avg_runner.py", line 177, in main
runner = AVGRunner(num_steps, load_path, num_test_rec)
File "avg_runner.py", line 58, in init
self.saver.restore(self.sess, model_load_path)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1428, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 965, in _run
feed_dict_string, options, run_metadata)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1015, in _do_run
target_list, options, run_metadata)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1035, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Tensor name "generator/scale_3/setup/Variable_9/optimizer_1" not found in checkpoint files ./Models/Adversarial/model.ckpt-500000
[[Node: save/RestoreV2_166 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_166/tensor_names, save/RestoreV2_166/shape_and_slices)]]
Caused by op u'save/RestoreV2_166', defined at:
File "avg_runner.py", line 185, in
main()
File "avg_runner.py", line 177, in main
runner = AVGRunner(num_steps, load_path, num_test_rec)
File "avg_runner.py", line 53, in init
self.saver = tf.train.Saver(keep_checkpoint_every_n_hours=2)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1040, in init
self.build()
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1070, in build
restore_sequentially=self._restore_sequentially)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 675, in build
restore_sequentially, reshape)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps
tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 242, in restore_op
[spec.tensor.dtype])[0])
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2
dtypes=dtypes, name=name)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op
op_def=op_def)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2327, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/home/deckyal/anaconda2/envs/NormalEnv/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1226, in init
self._traceback = _extract_stack()
NotFoundError (see above for traceback): Tensor name "generator/scale_3/setup/Variable_9/optimizer_1" not found in checkpoint files ./Models/Adversarial/model.ckpt-500000
[[Node: save/RestoreV2_166 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_166/tensor_names, save/RestoreV2_166/shape_and_slices)]]
from adversarial_video_generation.
@deckyal Which version of TensorFlow are you using? This only works for up to version 0.12 currently.
from adversarial_video_generation.
There shouldn't be any issues with the Pacman dataset, but you may want to check that your OS hasn't created any hidden files in there that the program might be grabbing and trying to interpret as images (Mac OS will sometimes do this). It could also be a problem with newer TensorFlow versions, since this hasn't been updated in a while.
Hopefully I'll have a chance to get back to this project and clean it all up sometime soon, but I just started a new job, so not sure when I'll have the time to get around to it.
from adversarial_video_generation.
@deckyal I have the same question,what's wrong with it? Do you fix it?
from adversarial_video_generation.
Related Issues (20)
- Confusion using the plug-and-play data HOT 5
- Regarding the normalization step HOT 4
- problem about exist model HOT 4
- Some problem about gdl_loss HOT 1
- Question about discriminator input HOT 3
- What do the output images represent? HOT 12
- Normalization of losses
- Why need the data processing step? HOT 3
- Error with np.random.choice HOT 4
- What is PSNR error exactly? HOT 3
- Can you share the code that generates the gif file? HOT 2
- TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64
- Alternative GDL loss implemetation
- Loss weighting HOT 1
- ValueError: Dimension 3 in both shapes must be equal HOT 1
- Updating Code to New Tensorflow version HOT 2
- GLARING bug with the process data pipeline.
- TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 HOT 1
- ValueError: Dimensions must be equal, but are 1 and 3 for 'generator/train/Conv2D' (op: 'Conv2D') with input shapes: [?,4,4,1], [1,2,3,3].
- Tensorflow and packages are out of date
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adversarial_video_generation.