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

Custom semantic segmentation tutorial #2588

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

calebrob6
Copy link
Member

@calebrob6 calebrob6 commented Feb 18, 2025

Re-upped version of #1897

For review convenience, here's a link to the notebook.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 18, 2025
@adamjstewart adamjstewart added this to the 0.7.0 milestone Feb 19, 2025
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A much needed tutorial, thanks!

@adamjstewart adamjstewart removed this from the 0.7.0 milestone Mar 23, 2025
@calebrob6
Copy link
Member Author

fast_dev_run disables ModelCheckpoint callbacks -- so I'm going to remove demo'ing this in the tutorial

@calebrob6 calebrob6 added this to the 0.7.0 milestone Mar 24, 2025
Copy link
Collaborator

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great now, just a couple minor fixes remaining.

"- `configure_callbacks`: We demonstrate how to stack `ModelCheckpoint` callbacks to save the best checkpoint as well as periodic checkpoints\n",
"- `on_train_epoch_start`: We log the learning rate at the start of each epoch so we can easily see how it decays over a training run\n",
"\n",
"Overall these demonstrate how to customize the training routine to investigate specific research questions (e.g., of the scheduler on test performance)."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Overall these demonstrate how to customize the training routine to investigate specific research questions (e.g., of the scheduler on test performance)."
"Overall these demonstrate how to customize the training routine to investigate specific research questions (e.g., the effect of the scheduler on test performance)."

"source": [
"## Train model\n",
"\n",
"The remainder of the turial is straightforward and follows the typical [PyTorch Lightning](https://lightning.ai/) training routine. We instantiate a `DataModule` for the LandCover.AI 100 dataset (a small version of the LandCover.AI dataset for notebook testing), instantiate a `CustomSemanticSegmentationTask` with a U-Net and ResNet-50 backbone, then train the model using a Lightning trainer.\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"The remainder of the turial is straightforward and follows the typical [PyTorch Lightning](https://lightning.ai/) training routine. We instantiate a `DataModule` for the LandCover.AI 100 dataset (a small version of the LandCover.AI dataset for notebook testing), instantiate a `CustomSemanticSegmentationTask` with a U-Net and ResNet-50 backbone, then train the model using a Lightning trainer.\n",
"The remainder of the turial is straightforward and follows the typical [PyTorch Lightning](https://lightning.ai/) training routine. We instantiate a `DataModule` for the LandCover.AI 100 dataset (a small version of the LandCover.AI dataset for notebook testing), instantiate a `CustomSemanticSegmentationTask` with a U-Net and ResNet-18 backbone, then train the model using a Lightning trainer.\n",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants