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

Exemple 3 in the user guide #44

Open
St-Savin opened this issue Mar 31, 2022 · 0 comments
Open

Exemple 3 in the user guide #44

St-Savin opened this issue Mar 31, 2022 · 0 comments

Comments

@St-Savin
Copy link

The code for the third exemple in the user guide (attention-Unet for single target regression) does not work for me. When I train the model, I get this error : "

ValueError: Negative dimension size caused by subtracting 2 from 1 for '{{node attunet_model/attunet_down1_encode_stride_conv/Conv2D}} = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], explicit_paddings=[], padding="VALID", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true](attunet_model/attunet_down0_1_activation/Relu, attunet_model/attunet_down1_encode_stride_conv/Conv2D/ReadVariableOp)' with input shapes: [?,1,1,64], [2,2,64,128]

"
I created a training matrix of 3 variables a vector for the labels and then added 2 other dimensions so it can be processed by the unet.Maybe that is the problem.

train_labels = default_rng(42).random((386))
train_specs = default_rng(42).random((386,3))
train_specs = tf.expand_dims(train_specs, axis=1)
train_specs = tf.expand_dims(train_specs, axis=1)

thanks for your efforts.

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