-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Negative size error #20
Comments
You can't use 19 for 3rd dimension. Try 32. If you want to use 19, then you need to use custom stride size: |
So is this the part that I should update ? |
I don't know which code you use. This works for me:
|
Also this works for me:
Note: number of strides for convnext is 4. Usually it 5 for almost all other models. |
Okay thank you so much! |
I am trying to use convnext for images with 128x128x19x1 size but I get the following error why might that happen ;
ValueError: Exception encountered when calling layer 'convnext_small_downsampling_conv_2' (type Conv3D).
Negative dimension size caused by subtracting 2 from 1 for '{{node convnext_small_downsampling_block_2/convnext_small_downsampling_conv_2/Conv3D}} = Conv3D[T=DT_FLOAT, data_format="NDHWC", dilations=[1, 1, 1, 1, 1], padding="VALID", strides=[1, 2, 2, 2, 1]](convnext_small_downsampling_block_2/convnext_small_downsampling_layernorm_2/batchnorm/add_1, convnext_small_downsampling_block_2/convnext_small_downsampling_conv_2/Conv3D/ReadVariableOp)' with input shapes: [?,8,8,1,384], [2,2,2,384,768].
Call arguments received by layer 'convnext_small_downsampling_conv_2' (type Conv3D):
• inputs=tf.Tensor(shape=(None, 8, 8, 1, 384), dtype=float32)
The text was updated successfully, but these errors were encountered: