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
Recently I encountered following problem when I try to run evaluate.py:
tensorflow.python.framework.errors_impl.InvalidArgumentError: Number of ways to split should evenly divide the split dimension, but got split_dim 2 (size = 1) and num_split 3
I've noticed that the preprocessing codes in train.py use tf.reshape()before decoding images :
use tf.reshape() can convert image from grayscale to rgb.
Hi, first thanks for getting this done.
Recently I encountered following problem when I try to run
evaluate.py
:tensorflow.python.framework.errors_impl.InvalidArgumentError: Number of ways to split should evenly divide the split dimension, but got split_dim 2 (size = 1) and num_split 3
I've noticed that the preprocessing codes in
train.py
usetf.reshape()
before decoding images :use
tf.reshape()
can convert image from grayscale to rgb.tensorflow-deeplab-v3/train.py
Lines 140 to 141 in a5d7ff2
tensorflow-deeplab-v3/train.py
Lines 145 to 146 in a5d7ff2
but in
evaluate.py
, the preprocessing codes didn't usetf.reshape()
:tensorflow-deeplab-v3/utils/preprocessing.py
Line 233 in a5d7ff2
tensorflow-deeplab-v3/utils/preprocessing.py
Line 243 in a5d7ff2
This will raise error if there is a grayscale image in dataset. So I edit code like this:
It works!
The text was updated successfully, but these errors were encountered: