1 year ago

#386333

test-img

Manuel Soengas Núñez

Cannot assign value to variable, VGG16

I am training a system with two images using transfer_learning using the VGG16 pretrained network. If I use the weights it gives me an error, I don't know the reason or how to solve it. Any suggestion?

input_shape = (60, 36, 3)
# Declaramos dos capas de Input
input_1 = Input(shape=input_shape)
input_2 = Input(shape=input_shape)
concate_input = Concatenate()([input_1, input_2])
input = layers.Conv2D(6,3, activation="relu") (concate_input)
base_model = applications.VGG16(weights= 'imagenet', include_top=False, input_tensor= 
concate_input)

The error message is:

ValueError: Cannot assign value to variable ' block1_conv1/kernel:0': Shape mismatch.The variable shape (3, 3, 6, 64), and the assigned value shape (64, 3, 3, 3) are incompatible.

Thanks a lot¡¡

python

tensorflow

keras

deep-learning

artificial-intelligence

0 Answers

Your Answer

Accepted video resources