question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SemanticSegmentationTask MisconfigurationException

See original GitHub issue

Hi my dataloader does not have validation split while i am running code it’s giving the error

model =SemanticSegmentationTask(
    segmentation_model="fcn",
    encoder_name="resnet18",
    encoder_weights="imagenet",
    in_channels=9,
    num_classes=2,
    num_filters=128,
    loss="ce",
    ignore_zeros=True,
    learning_rate=0.1,
    learning_rate_schedule_patience=0.05,
    
)

trainer = pl.Trainer(
                  gpus=1,
                  callbacks=[checkpoint_callback, early_stopping_callback],
                  logger=[csv_logger],
                  max_epochs=10,
                  precision=32,
                  log_every_n_steps=0.01,
                  max_steps=4,
               )

trainer.fit(model,dl)

Screenshot (1432)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kethan52commented, May 3, 2022

Thank you soo much

1reaction
isaaccorleycommented, May 2, 2022

The Segmentation trainer is currently set to monitor “val_loss” which requires that you have a validation dataloader in your lightning data module. You can either add a validation dataloader or subclass the trainer and override the configure_optimizers method to monitor “train_loss”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Semantic Segmentation task documentation for `from_datasets`
Currently, the docs for Semantic Segmentation tasks say that to use the from_datasets method: The __getitem__ of your datasets should return a dictionary ......
Read more >
Semantic Segmentation with UNets in PyTorch - Wandb
Let us implement UNet from scratch for a Semantic Segmentation task and prepare a pipeline which can be utilized for similar datasets.
Read more >
Semantic segmentation - Kornia
Semantic segmentation, or image segmentation, is the task of clustering parts of an image together which belong to the same object class.
Read more >
Semantic Segmentation | Papers With Code
Semantic segmentation, or image segmentation, is the task of clustering parts of an image together which belong to the same object class.
Read more >
Pytorch Image Segmentation Tutorial For Beginners — I
In this tutorial, we are doing semantic segmentation of Brain Tumor MRI ... Brain tumor segmentation is an important task in healthcare AI....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found