bencottier / cgan-denoiser Goto Github PK
View Code? Open in Web Editor NEWTensorflow/Keras implementation of a Conditional Generative Adversarial Network (CGAN) model that can be used for image denoising or artefact removal.
Tensorflow/Keras implementation of a Conditional Generative Adversarial Network (CGAN) model that can be used for image denoising or artefact removal.
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]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.