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

Add random crop logic to DeepGlobeLandCover Datamodule #876

Merged
merged 40 commits into from
Dec 30, 2022
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ac16986
crop logic
nilsleh Oct 29, 2022
d74bae9
typo
nilsleh Oct 29, 2022
d464034
change train_batch_size logic
nilsleh Nov 17, 2022
2fa4f93
fix failing test
nilsleh Nov 23, 2022
304b253
typos and naming
nilsleh Dec 3, 2022
64c2243
return argument train dataloader
nilsleh Dec 3, 2022
9504cf5
typo
nilsleh Dec 3, 2022
e2569f6
fix failing test
nilsleh Dec 14, 2022
e90d926
suggestions except about test file
nilsleh Dec 19, 2022
ae22fc2
remove test_deepglobe and add test to trainer
nilsleh Dec 20, 2022
da023ac
forgot new conf file
nilsleh Dec 20, 2022
368fbbb
reanme collate function
nilsleh Dec 20, 2022
780d2f0
move cropping logic to transform and utils
nilsleh Dec 20, 2022
0ed41e9
remove comment
nilsleh Dec 20, 2022
80747d9
simplify
nilsleh Dec 20, 2022
383f40f
move pad_segmentation to transforms
nilsleh Dec 20, 2022
0ec2ce0
another one
nilsleh Dec 21, 2022
4fa0a1e
naming and versionadded
nilsleh Dec 21, 2022
ad39c6b
another transforms approach
nilsleh Dec 23, 2022
9cf99c1
typo
nilsleh Dec 23, 2022
c3e2325
fix read the docs
nilsleh Dec 23, 2022
873c9af
some checks for Ncrop
nilsleh Dec 23, 2022
5b0c6b0
add unit tests new transforms
nilsleh Dec 23, 2022
e976630
Remove cruft
adamjstewart Dec 27, 2022
621a905
More simplification
adamjstewart Dec 27, 2022
5ab6535
Add config file
adamjstewart Dec 28, 2022
ae17d7d
Implemented ExtractTensorPatches
adamjstewart Dec 28, 2022
f2a0dd8
Remove tests
adamjstewart Dec 28, 2022
d23fc7c
Remove unnecessary attrs
adamjstewart Dec 28, 2022
5412449
Apply to both input and mask
adamjstewart Dec 28, 2022
4e3a1b0
Implement RandomNCrop
adamjstewart Dec 28, 2022
041aaca
Fix dimensions
adamjstewart Dec 28, 2022
d31c48d
mypy fixes
adamjstewart Dec 29, 2022
9af4d43
Fix docs
adamjstewart Dec 29, 2022
32b610c
Ensure that image and mask get the same transformation
adamjstewart Dec 29, 2022
03d96f3
Bump min kornia version
adamjstewart Dec 29, 2022
e680000
ignore still needed?
adamjstewart Dec 29, 2022
2857b7b
Remove unneeded hacks
adamjstewart Dec 29, 2022
d35773b
Fix pydocstyle
adamjstewart Dec 29, 2022
50ece12
Fix dimensions
adamjstewart Dec 29, 2022
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
Prev Previous commit
Next Next commit
return argument train dataloader
  • Loading branch information
nilsleh authored and adamjstewart committed Dec 27, 2022
commit 64c2243b090862a36cd0b4712cc899177a48a4f4
2 changes: 1 addition & 1 deletion torchgeo/datamodules/deepglobelandcover.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def pad_to(sample: Dict[str, Any]) -> Dict[str, Any]:
split="test", transforms=test_transforms, **self.kwargs
)

def train_dataloader(self) -> DataLoader[Any]:
def train_dataloader(self) -> DataLoader[Dict[str, Any]]:
"""Return a DataLoader for training.

Returns:
Expand Down