-
Notifications
You must be signed in to change notification settings - Fork 45
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
Shape mismatch at the output on unet when n_classes > 1 #317
Comments
shape of labels coming from tfrecords is already
doing OHE in map_labels again leads to a shape mismatch (an extra dimension is appended, see below).
Solution: The shape of labels should be (*volume_shape, 1)` until the dataset construction at which point, the n_classes should be factored in. TODO: This should help address test for n_classes > 1 |
Reason: if we have to pass on the 6/50 class label mapping (
|
Proposal: add argument For reference: see https://github.com/neuronets/nobrainer_training_scripts/blob/main/1.2.0/label_mapping.py @satra 👍 or 👎 ? |
Go for it and see how it plays out
…On Tue, Apr 2, 2024, 5:25 PM H Gazula ***@***.***> wrote:
Proposal: add argument label_mapping: Dict = None to both from_files and
from_tfrecords in Dataset.
For reference: see
https://github.com/neuronets/nobrainer_training_scripts/blob/main/1.2.0/label_mapping.py
@satra <https://github.com/satra> 👍 or 👎 ?
—
Reply to this email directly, view it on GitHub
<#317 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABM574ZZFGX3N4NWFYXTADY3MO5NAVCNFSM6AAAAABFTUX7MSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZTGEZDMMZRGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
The text was updated successfully, but these errors were encountered: