VGG16 Keras in R

Hello

While trying to extract features from VGG16 model, changed the input as below but when trying to change output to "block1_conv1" using get_layer() getting error as below

image

Please let me know where I am going wrong.

1 Like

you need to pass node_index parameter into function.

Thanks, I was able to get the desired result using below code

model2=keras_model(inputs=model1$input,outputs=get_layer(model1, 'block1_conv1')$output)