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 Inria datamodule #498

Merged
merged 26 commits into from
May 22, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Use dict.get
  • Loading branch information
ashnair1 committed May 19, 2022
commit 06e77666259a28feea9142c2062b002922c953e2
4 changes: 2 additions & 2 deletions predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def main(conf: DictConfig) -> None:
raise NotImplementedError

for i, batch in enumerate(dataloader):
tfm = batch["transform"] if "transform" in batch else None
crs = batch["crs"] if "crs" in batch else None
tfm = batch.get("transform")
crs = batch.get("crs")

x = batch["image"].to("cuda") # (N, B, C, H, W)
assert len(x.shape) in {4, 5}
Expand Down