Skip to content

Commit

Permalink
Revert "SimCLR: add new trainer (#1195)" (#1205)
Browse files Browse the repository at this point in the history
This reverts commit 39d6941.
  • Loading branch information
adamjstewart authored Mar 29, 2023
1 parent 39d6941 commit d14e254
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 345 deletions.
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
("py:class", "segmentation_models_pytorch.base.model.SegmentationModel"),
("py:class", "timm.models.resnet.ResNet"),
("py:class", "timm.models.vision_transformer.VisionTransformer"),
("py:class", "torch.optim.lr_scheduler.LRScheduler"),
("py:class", "torchvision.models._api.WeightsEnum"),
("py:class", "torchvision.models.resnet.ResNet"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ experiment:
module:
loss: "ce"
model: "unet"
backbone: "resnet18"
backbone: "resnet50"
learning_rate: 1e-3
learning_rate_schedule_patience: 6
in_channels: 4
Expand All @@ -13,7 +13,7 @@ experiment:
weights: null
datamodule:
root: "tests/data/chesapeake/cvpr"
download: false
download: true
train_splits:
- "de-test"
val_splits:
Expand Down
23 changes: 0 additions & 23 deletions tests/conf/chesapeake_cvpr_prior_simclr_1.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions tests/conf/chesapeake_cvpr_prior_simclr_2.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions tests/conf/seco_simclr_1.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions tests/conf/seco_simclr_2.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions tests/trainers/test_byol.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class TestBYOLTask:
@pytest.mark.parametrize(
"name,classname",
[
("chesapeake_cvpr_prior_byol", ChesapeakeCVPRDataModule),
("seco_byol_1", SeasonalContrastS2DataModule),
("seco_byol_2", SeasonalContrastS2DataModule),
("chesapeake_cvpr_prior", ChesapeakeCVPRDataModule),
("seco_1", SeasonalContrastS2DataModule),
("seco_2", SeasonalContrastS2DataModule),
],
)
def test_trainer(
Expand Down
65 changes: 0 additions & 65 deletions tests/trainers/test_simclr.py

This file was deleted.

2 changes: 0 additions & 2 deletions torchgeo/trainers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from .detection import ObjectDetectionTask
from .regression import RegressionTask
from .segmentation import SemanticSegmentationTask
from .simclr import SimCLRTask

__all__ = (
"BYOLTask",
Expand All @@ -17,5 +16,4 @@
"ObjectDetectionTask",
"RegressionTask",
"SemanticSegmentationTask",
"SimCLRTask",
)
198 changes: 0 additions & 198 deletions torchgeo/trainers/simclr.py

This file was deleted.

0 comments on commit d14e254

Please sign in to comment.