I'll attach a Nb for code. The code works fine with the initial values.
When using some different values, especially for 'layersToDrop' (e.g. layersToDrop=5), I get errors like this one:
NetDrop::ninctyp2: Incompatible dimensions for output of layer "block1a", NetChain[«6»], and input to layer "block2b", NetGraph[«11»,«13»]; a 16*112*112 array of real numbers is not compatible with a 24*56*56 array of real numbers, respectively.
I understand the error. The Array size of output of layer n is not compatible with the input of layer n+1, as I have taken out one or more layers in the Net.
How do I adapt the layers that do not 'communicate' properly anymore?
In other words, can I change the Array sizes of the layers in the Net?
Attachments: