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
are you using the correct Tensorflow version? When I tested the code with the specified version it ran fine for me, but I remember getting this error later when I upgraded to a newer Tensorflow version.
In any case, please try casting the masks to float by changing line 155 in the file UNet_segmentation.py from return mask
to return mask.astype('float32')
Hello sir,
I am getting a data type error while using UNet_Segmentation.py.
In line number 258:
weights = (y_true *( weighting - 1)) + 1
TypeError: Expected uint8 passed to parameter 'y' of op 'Mul', got float instead.
Regards,
Shailendra
The text was updated successfully, but these errors were encountered: