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

Issue in metrics.py function weighted_dice_coefficient #8

Open
ulfathussainulfat opened this issue Mar 25, 2023 · 0 comments
Open

Issue in metrics.py function weighted_dice_coefficient #8

ulfathussainulfat opened this issue Mar 25, 2023 · 0 comments

Comments

@ulfathussainulfat
Copy link

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

Error

Can you please help in this regard

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