I have implemented a simple variational autoencoder in Keras with 2 convolutional layers in the encoder and decoder. The code is shown below. Now, I have extended my implementation with two skip connections (similar to U-Net). The skip connections are named merge1and merge2in the below code. Without the skip connections everything works fine but with the skip connections I'm getting the following error message:
ValueError: Graph disconnected: cannot obtain value for tensor Tensor("encoder_input:0", shape=(?, 64, 80, 1), dtype=float32) at layer "encoder_input". The following previous layers were accessed without issue: []
Hello
I have implemented a simple variational autoencoder in Keras with 2 convolutional layers in the encoder and decoder. The code is shown below. Now, I have extended my implementation with two skip connections (similar to U-Net). The skip connections are named
merge1
andmerge2
in the below code. Without the skip connections everything works fine but with the skip connections I'm getting the following error message:Is there a problem in my code?