Hi,
I am trying to run the codes for Age detection using jupyter notebook but I an getting errors when I try to load the weights.
When the code below is used,
base_model = ResNet50(include_top=False, weights='imagenet', input_shape=(224, 224, 3), pooling="avg")
prediction = Dense(units=101, kernel_initializer="he_normal", use_bias=False, activation="softmax",
name="pred_age")(base_model.output)
model = Model(inputs=base_model.input, outputs=prediction)
it yields,
ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible
Please help.
Hi,
I am trying to run the codes for Age detection using jupyter notebook but I an getting errors when I try to load the weights.
When the code below is used,
base_model = ResNet50(include_top=False, weights='imagenet', input_shape=(224, 224, 3), pooling="avg")
prediction = Dense(units=101, kernel_initializer="he_normal", use_bias=False, activation="softmax",
name="pred_age")(base_model.output)
model = Model(inputs=base_model.input, outputs=prediction)
it yields,
ValueError: Cannot assign to variable conv3_block1_0_conv/kernel:0 due to variable shape (1, 1, 256, 512) and value shape (512, 128, 1, 1) are incompatible
Please help.