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

Remove __module__ hacks #976

Merged
merged 4 commits into from Dec 26, 2022
Merged

Remove __module__ hacks #976

merged 4 commits into from Dec 26, 2022

Conversation

adamjstewart
Copy link
Collaborator

@adamjstewart adamjstewart commented Dec 25, 2022

Fixes pickling of torchgeo.trainers objects and the vast majority of our documentation issues!

See #886 and #101

Reboot of #317, #401, and #637. Fourth time's the charm!

@adamjstewart adamjstewart added this to the 0.3.2 milestone Dec 25, 2022
@github-actions github-actions bot added datamodules PyTorch Lightning datamodules datasets Geospatial or benchmark datasets losses Geospatial loss functions models Models and pretrained weights samplers Samplers for indexing datasets testing Continuous integration testing trainers PyTorch Lightning trainers transforms Data augmentation transforms labels Dec 25, 2022
@adamjstewart
Copy link
Collaborator Author

These hacks were originally introduced to work around a bug in Sphinx 3. Now that PyTorch, TorchGeo, and torchvision all use Sphinx 4+, they are no longer needed. See sphinx-doc/sphinx#9395 for details.

Comment on lines +273 to +274
#: When :attr:`~RasterDataset.separate_files` is True, the following additional
#: groups are searched for to find other files:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@adamjstewart adamjstewart added the documentation Improvements or additions to documentation label Dec 25, 2022
@adamjstewart adamjstewart merged commit fd06985 into main Dec 26, 2022
@adamjstewart adamjstewart deleted the fixes/modules branch December 26, 2022 15:51
@adamjstewart adamjstewart modified the milestones: 0.3.2, 0.4.0 Jan 23, 2023
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Remove __module__ hacks

* Remove unused imports

* Fix typo in reference

* Explicit link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodules PyTorch Lightning datamodules datasets Geospatial or benchmark datasets documentation Improvements or additions to documentation losses Geospatial loss functions models Models and pretrained weights samplers Samplers for indexing datasets testing Continuous integration testing trainers PyTorch Lightning trainers transforms Data augmentation transforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants