Open abred opened 4 years ago
target_spatial_shape
is a tuple andspatial_shape
is a list, at least for my Python version those are always unequal and thus the inequality comparison is always trueif target_spatial_shape != tuple(spatial_shape):
i got the same problem, assertionerror feature mao with shape...is too small to ensure..... have u solved it now?
@virgoli you are describing a different error. The output size of the network has to be big enough to ensure translation equivariance (see https://arxiv.org/abs/2101.05846). You have to increase the input size. (With valid padding the output is smaller than the input)
https://github.com/funkelab/funlib.learn.tensorflow/blob/6ca8092408241d439d572fe179b85cc32782cc03/funlib/learn/tensorflow/models/unet.py#L464
target_spatial_shape
is a tuple andspatial_shape
is a list, at least for my Python version those are always unequal and thus the inequality comparison is always true