ambient-gan
ambient-gan copied to clipboard
Troubles trying to reproduce the results
Hi, My name is Alejandro Barredo Arrieta and I am trying reproduce your implentation for a research study I am conducting. I am trying to run your steps for the cifar dataset and found a couple of problems. I do not know if are only problems on my side or are actually problems on the implementation:
-
inception_score.py - line 112 -
logits = tf.matmul(tf.squeeze(pool3), w)
throws the error - > tensor of rank 2 needed for matmul and [, xxx] was given. So I changed it to:logits = tf.matmul(tf.reshape(tf.squeeze(pool3), [1, -1]), w)
-
for the second error, I do not know what is causing it, so I hope you can help. Running the generated scripts it throws:
Traceback (most recent call last): File "src/cifar/gan_cifar_resnet.py", line 260, in <module> AMB_HPARAMS = amb_setup() File "src/cifar/gan_cifar_resnet.py", line 247, in amb_setup hparams = amb_hparams_def.get_hparams(args) File "/home/xai/Documentos/AmbientGAN/src/cifar/amb_hparams_def.py", line 7, in get_hparams hparams = tf.contrib.training.HParams( File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.py", line 53, in __getattr__ module = self._load() File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/python/util/lazy_loader.py", line 42, in _load module = importlib.import_module(self.__name__) File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/contrib/__init__.py", line 47, in <module> from tensorflow.contrib import image File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/contrib/image/__init__.py", line 70, in <module> from tensorflow.contrib.image.python.ops.single_image_random_dot_stereograms import single_image_random_dot_stereograms File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/contrib/image/python/ops/single_image_random_dot_stereograms.py", line 27, in <module> "_single_image_random_dot_stereograms.so")) File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/contrib/util/loader.py", line 56, in load_op_library ret = load_library.load_op_library(path) File "/home/xai/anaconda3/envs/AmbientGAN/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 73, in load_op_library exec(wrappers, module.__dict__) File "<string>", line 27 def single_image_random_dot_stereograms(depth_values, hidden_surface_removal=True, convergence_dots_size=8, dots_per_inch=72, eye_separation=2,5, mu=0,333299994, normalize=True, normalize_max=-100, normalize_min=100, border_level=0, number_colors=256, output_image_shape=[1024, 768, 1], output_data_window=[1022, 757], name=None):
Thanks in advance for posting your code.