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

Bump lightning[pytorch-extra] from 2.4.0 to 2.5.0.post0 in /requirements #2489

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
('py:class', 'fiona.model.Feature'),
('py:class', 'kornia.augmentation._2d.intensity.base.IntensityAugmentationBase2D'),
('py:class', 'kornia.augmentation.base._AugmentationBase'),
('py:class', 'lightning.pytorch.utilities.types.LRSchedulerConfig'),
('py:class', 'lightning.pytorch.utilities.types.OptimizerConfig'),
('py:class', 'lightning.pytorch.utilities.types.OptimizerLRSchedulerConfig'),
('py:class', 'segmentation_models_pytorch.base.model.SegmentationModel'),
('py:class', 'timm.models.resnet.ResNet'),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ dependencies = [
# lightning 2+ required for LightningCLI args + sys.argv support
# lightning 2.3 contains known bugs related to YAML parsing
# https://github.com/Lightning-AI/pytorch-lightning/issues/19977
"lightning[pytorch-extra]>=2,!=2.3.*",
"lightning[pytorch-extra]>=2,!=2.3.*,!=2.5.0",
# matplotlib 3.5+ required for Python 3.10 wheels
"matplotlib>=3.5",
# numpy 1.21.2+ required by Python 3.10 wheels
Expand Down
2 changes: 1 addition & 1 deletion requirements/required.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ einops==0.8.0
fiona==1.10.1
kornia==0.7.4
lightly==1.5.15
lightning[pytorch-extra]==2.4.0
lightning[pytorch-extra]==2.5.0.post0
matplotlib==3.10.0
numpy==2.2.1
pandas==2.2.3
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def configure_metrics(self) -> None:

def configure_optimizers(
self,
) -> 'lightning.pytorch.utilities.types.OptimizerLRSchedulerConfig':
) -> 'lightning.pytorch.utilities.types.OptimizerLRScheduler':
"""Initialize the optimizer and learning rate scheduler.

Returns:
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/iobench.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def configure_models(self) -> None:

def configure_optimizers(
self,
) -> 'lightning.pytorch.utilities.types.OptimizerLRSchedulerConfig':
) -> 'lightning.pytorch.utilities.types.OptimizerLRScheduler':
"""Initialize the optimizer.

Returns:
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/moco.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def configure_losses(self) -> None:

def configure_optimizers(
self,
) -> 'lightning.pytorch.utilities.types.OptimizerLRSchedulerConfig':
) -> 'lightning.pytorch.utilities.types.OptimizerLRScheduler':
"""Initialize the optimizer and learning rate scheduler.

Returns:
Expand Down
2 changes: 1 addition & 1 deletion torchgeo/trainers/simclr.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def predict_step(self, batch: Any, batch_idx: int, dataloader_idx: int = 0) -> N

def configure_optimizers(
self,
) -> 'lightning.pytorch.utilities.types.OptimizerLRSchedulerConfig':
) -> 'lightning.pytorch.utilities.types.OptimizerLRScheduler':
"""Initialize the optimizer and learning rate scheduler.

.. versionchanged:: 0.6
Expand Down
Loading