We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
model =SemanticSegmentationTask( segmentation_model="fcn", encoder_name="resnet18", encoder_weights="imagenet", in_channels=9, num_classes=1, num_filters=128, loss="jaccard", ignore_zeros=True, learning_rate=0.1, learning_rate_schedule_patience=0.05, ) trainer = pl.Trainer( gpus=0, callbacks=[checkpoint_callback, early_stopping_callback], logger=[csv_logger], min_epochs=10, max_epochs=100, precision=32, log_every_n_steps=0.01, max_steps=8, ) trainer.fit(model,dl,dl)
Hi, as I want to do the binary sematic segmentation I need num_clasess=1 can I have any scope of doing with single class
The text was updated successfully, but these errors were encountered:
This seems to be a duplicate of your other issues #513 and #514. Can you add some context to why this is a separate issue?
Sorry, something went wrong.
num_classes=1 will need to be trained with a different loss than PyTorch's cross entropy, which isn't currently implemented in SemanticSegmentationTask (you would need to use this https://pytorch.org/docs/stable/generated/torch.nn.BCELoss.html#torch.nn.BCELoss). Maybe we should add an assert that num_classes >= 2?
num_classes=1
SemanticSegmentationTask
num_classes >= 2
Could we add a conditional that automatically switches to BCE for num_classes=1?
I think this is also related to #245. So it's not just loss, it's also IoU.
No branches or pull requests
Hi, as I want to do the binary sematic segmentation I need num_clasess=1 can I have any scope of doing with single class
The text was updated successfully, but these errors were encountered: