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

About the CE loss and the preprocess. #17

Open
ruizes opened this issue Dec 25, 2024 · 0 comments
Open

About the CE loss and the preprocess. #17

ruizes opened this issue Dec 25, 2024 · 0 comments

Comments

@ruizes
Copy link

ruizes commented Dec 25, 2024

Hi, recently,i get some trouble about how to use the Crossentropyloss,i have preprocessed the brats2017 dataset according your preprocess.py when i train the model, i find the label's shape is [bs,3,128,128,128] and its type is float32, so i read your preprocess file in the file the label is get through the code '' result = [(img == 2) | (img == 3), (img == 2) | (img == 3) | (img == 1), img == 3]'',but the CEloss target is limited one channel .such as ce(out,label)the out.shape is [4,3,128,128,128]and the label must be [4,128,128,128].but in this label,i can't use argmax to transfer the shape.so can you help me to solve the problem? thanks!

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