Skip to content

Conversation

boezzz
Copy link

@boezzz boezzz commented Aug 18, 2025

Fixes #2854

this PR removes the use of PyTorch Lightning from the pretrained_weights.ipynb notebook to improve the tutorial's logical order

The changes consist of the following:

  • The PyTorch Lightning dataloader and training module have been removed from pretrained_weights.ipynb
  • Code to inspect the metadata of the pretrained weights has been added to the notebook
  • Content regarding the Lightning Trainer has been moved to trainer.ipynb

No new tests are needed for this PR

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Aug 18, 2025
@adamjstewart
Copy link
Member

Let's also load the weights into a model, similar to https://torchgeo--2946.org.readthedocs.build/en/2946/tutorials/pytorch.html#Model. Could also first load a model with timm and then load the weights into that model.

@adamjstewart adamjstewart added this to the 0.7.2 milestone Aug 24, 2025
demonstrate how to load pretrained weights into model using torchgeo.models or generic timm
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.

Remove PyTorch Lightning from Pretrained Weights Tutorial
2 participants