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
Thanks for the sharing. I am facing issue in function "weighted_dice_coefficient" of metrics.py.
TypeError: Input 'y' of 'Mul' Op has type float32 that does not match type int8 of argument 'x'.
I printed the y_true and y_pred and found that
printing y_true in console = Tensor("IteratorGetNext:1", shape=(None, None, None, None, None), dtype=int8)
printing y_pred in console = Tensor("model/activation/Sigmoid:0", shape=(None, 3, 128, 128, 128), dtype=float32)
printing y_true.shape in console = (None, None, None, None, None)
printing y_pred.shape in console = (None, 3, 128, 128, 128)
Please see the error screenshot
Can you please help in this regard
The text was updated successfully, but these errors were encountered:
Thanks for the sharing. I am facing issue in function "weighted_dice_coefficient" of metrics.py.
TypeError: Input 'y' of 'Mul' Op has type float32 that does not match type int8 of argument 'x'.
I printed the y_true and y_pred and found that
printing y_true in console = Tensor("IteratorGetNext:1", shape=(None, None, None, None, None), dtype=int8)
printing y_pred in console = Tensor("model/activation/Sigmoid:0", shape=(None, 3, 128, 128, 128), dtype=float32)
printing y_true.shape in console = (None, None, None, None, None)
printing y_pred.shape in console = (None, 3, 128, 128, 128)
Please see the error screenshot
Can you please help in this regard
The text was updated successfully, but these errors were encountered: