VGG16 Keras in R

keras

#1

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.


#3

you need to pass node_index parameter into function.


#4

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)


#5