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

how to make the network work well with num_class=2 #20

Open
zhou-rui1 opened this issue Aug 9, 2021 · 0 comments
Open

how to make the network work well with num_class=2 #20

zhou-rui1 opened this issue Aug 9, 2021 · 0 comments

Comments

@zhou-rui1
Copy link

Hi, originally it work well with num_class=256...

but when I edited img = img.astype('float32') / 255.0, seg = seg.astype('float32') / 255.0 in segmentation_dataset.py, and target = target//255 in trainer.py to adapt the train to num_class=2only(for binary seg),

then the network can not train well and predict nothing (black), did I do something wrong?
image

you are so kind and sorry to bother you again...

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