Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to take multiple output from pretrained network #141

Open
farhantandia opened this issue Feb 14, 2021 · 0 comments
Open

How to take multiple output from pretrained network #141

farhantandia opened this issue Feb 14, 2021 · 0 comments

Comments

@farhantandia
Copy link

    input_image = Input(shape=image_input_shape)
    eff_model=efn.EfficientNetB3(input_shape=(height, width, 3),
                                   include_top=False,
                                   weights='noisy-student')
    model_backbone = Model(eff_model.input,[eff_model.get_layer('block6d_se_squeeze').output,eff_model.output])
   
    timeDistributed_layer = tf.keras.layers.TimeDistributed(model_backbone)(input_image)
    t = LSTM(128...)(timeDistributed_layer) -->first output of backbone
    c = Conv2D(128,..)(timeDistributed_layer) --> second output of backbone

Based on the sample code above how to specify the output of the backbone to each next network?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant