Code Monkey home page Code Monkey logo

cgan-denoiser's People

Contributors

bencottier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cgan-denoiser's Issues

Error while running the code on cifar-10

VValueError: Input 0 of layer geconv1 is incompatible with the layer: expected axis -1 of input shape to have value 1 but received input with shape [256, 36, 36, 3]

I updated the line "train_images.reshape" to match the new data set shape, but still get this error train_images=train_images.reshape(50000,32,32,3)

FULL ERROR:
Traceback (most recent call last):
File "test_cgan.py", line 217, in
train(train_dataset, config.max_epoch)
File "test_cgan.py", line 86, in train
train_step(x, y)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 1319, in call
graph_function, args, kwargs = self._maybe_define_function(args, kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 1608, in maybe_define_function
graph_function = self.create_graph_function(args, kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 1541, in create_graph_function
capture_by_value=self.capture_by_value),
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 713, in func_graph_from_py_func
func_outputs = python_func(*func_args, **func_kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 705, in wrapper
), args, kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/autograph/impl/api.py", line 377, in converted_call
result = converted_f(*effective_args, **kwargs)
File "/tmp/tmpg71djzr6.py", line 11, in tf__train_step
generated_images = ag
.converted_call(generator, None, ag
.ConversionOptions(recursive=True, force_conversion=False, optional_features=(), internal_convert_user_code=True), (inputs,), {'training': True})
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/autograph/impl/api.py", line 273, in converted_call
return _call_unconverted(f, args, kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/autograph/impl/api.py", line 172, in _call_unconverted
return f(*args, **kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 634, in call
outputs = call_fn(inputs, *args, **kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py", line 751, in call
return self._run_internal_graph(inputs, training=training, mask=mask)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/keras/engine/network.py", line 893, in _run_internal_graph
output_tensors = layer(computed_tensors, **kwargs)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/keras/engine/base_layer.py", line 586, in call
self.name)
File "/home/rishabh/lib/python3.6/site-packages/tensorflow/python/keras/engine/input_spec.py", line 159, in assert_input_compatibility
' but received input with shape ' + str(shape))
ValueError: Input 0 of layer geconv1 is incompatible with the layer: expected axis -1 of input shape to have value 1 but received input with shape [256, 36, 36, 3]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.