Skip to content

Commit e861754

Browse files
committed
Fix versionadded
1 parent 232cf4b commit e861754

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

torchgeo/datamodules/digital_typhoon.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717

1818
class DigitalTyphoonDataModule(NonGeoDataModule):
19-
"""Digital Typhoon Data Module."""
19+
"""Digital Typhoon Data Module.
20+
21+
.. versionadded:: 0.6
22+
"""
2023

2124
valid_split_types = ('time', 'typhoon_id')
2225

torchgeo/datamodules/geonrw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class GeoNRWDataModule(NonGeoDataModule):
2121
Implements 80/20 train/val splits based on city locations.
2222
See :func:`setup` for more details.
2323
24-
.. versionadded: 0.6
24+
.. versionadded:: 0.6
2525
"""
2626

2727
def __init__(

torchgeo/datasets/levircd.py

-2
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ class LEVIRCDPlus(LEVIRCDBase):
329329
If you use this dataset in your research, please cite the following paper:
330330
331331
* https://arxiv.org/abs/2107.09244
332-
333-
.. versionchanged:: 0.6
334332
"""
335333

336334
url = 'https://drive.google.com/file/d/1JamSsxiytXdzAIk6VDVWfc-OsX-81U81'

torchgeo/trainers/byol.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ class BackboneWrapper(nn.Module):
122122
* The output of the encoding layer is passed through the projection head
123123
* The forward call returns the output of the projection head
124124
125-
.. versionchanged 0.4: Name changed from *EncoderWrapper* to
126-
*BackboneWrapper*.
125+
.. versionchanged:: 0.4
126+
Name changed from *EncoderWrapper* to *BackboneWrapper*.
127127
"""
128128

129129
def __init__(

torchgeo/trainers/segmentation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ class and used with 'ce' loss.
7777
were renamed to *model*, *backbone*, and *weights*.
7878
7979
.. versionadded:: 0.5
80-
The *class_weights*, *freeze_backbone*, and *freeze_decoder* parameters.
80+
The *class_weights*, *freeze_backbone*, and *freeze_decoder* parameters.
8181
8282
.. versionchanged:: 0.5
8383
The *weights* parameter now supports WeightEnums and checkpoint paths.
8484
*learning_rate* and *learning_rate_schedule_patience* were renamed to
8585
*lr* and *patience*.
8686
8787
.. versionchanged:: 0.6
88-
The *ignore_index* parameter now works for jaccard loss.
88+
The *ignore_index* parameter now works for jaccard loss.
8989
"""
9090
self.weights = weights
9191
super().__init__(ignore='weights')

0 commit comments

Comments
 (0)