You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default for SuperResolutionGanModel is bad for 64x64x3, but needs to be 112x112x3. Technically the product needs to be 25088/2 = 12544
library( keras )
library( ANTsRNet )
keras::backend()$clear_session()
ganModel<-SuperResolutionGanModel$new(lowResolutionImageSize= c( 112, 112, 3 ))
ganModel<-SuperResolutionGanModel$new(lowResolutionImageSize= c( 64, 64, 3 ))
#> Error in py_call_impl(callable, dots$args, dots$keywords): ValueError: Input 0 of layer dense_7 is incompatible with the layer: expected axis -1 of input shape to have value 25088 but received input with shape [None, 8192]#> #> Detailed traceback: #> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 842, in __call__#> outputs = call_fn(cast_inputs, *args, **kwargs)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/sequential.py", line 256, in call#> return super(Sequential, self).call(inputs, training=training, mask=mask)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/network.py", line 708, in call#> convert_kwargs_to_constants=base_layer_utils.call_context().saving)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/network.py", line 860, in _run_internal_graph#> output_tensors = layer(computed_tensors, **kwargs)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/base_layer.py", line 812, in __call__#> self.name)#> File "/Users/johnmuschelli/.virtualenvs/r-reticulate/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/input_spec.py", line 213, in assert_input_compatibility#> ' but received input with shape ' + str(shape))
Created on 2020-01-30 by the reprex package (v0.3.0.9001)
Default for SuperResolutionGanModel is bad for
64x64x3
, but needs to be112x112x3
. Technically the product needs to be25088/2 = 12544
Created on 2020-01-30 by the reprex package (v0.3.0.9001)
Session info
The text was updated successfully, but these errors were encountered: