You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The objective is to take the current model and extract a submodel by using only a portion of it, skipping some of the first layers and passing the input straight to a middle layer, and receiving the result from later layers.
Current Behavior:
Now, this was supported in Keras 2, but when using the same code in Keras3, it stops at the given output layer but does not skip the initial layers. Instead of starting from the specified/given layer, it starts from the first layer of the base model, which is not required.
Expected Behavior:
Rather of starting from the first layer of the base model, create a submodel from the given/specified layer. Imagine that you require a new model, one that does not require the initial layers of an already-existing model.
From here I found no way to achieve this.
Steps To Reproduce:
Colab link with further details to reproduce and understand problem.
@divyashreepathihalli Thanks, Kindly Restart Session after executing 3rd last cell where we update Keras to version 3 (cell code below), then you will find a different submodel.
!pip install --upgrade keras-cv tensorflow
!pip install --upgrade keras
# After installation click on restart session button to load latest version of keras.
Goal:
The objective is to take the current model and extract a submodel by using only a portion of it, skipping some of the first layers and passing the input straight to a middle layer, and receiving the result from later layers.
Current Behavior:
Now, this was supported in Keras 2, but when using the same code in Keras3, it stops at the given output layer but does not skip the initial layers. Instead of starting from the specified/given layer, it starts from the first layer of the base model, which is not required.
Expected Behavior:
Rather of starting from the first layer of the base model, create a submodel from the given/specified layer. Imagine that you require a new model, one that does not require the initial layers of an already-existing model.
From here I found no way to achieve this.
Steps To Reproduce:
Colab link with further details to reproduce and understand problem.
Code Snippet:
The text was updated successfully, but these errors were encountered: