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

Proposed updates to OSCD dataset #1683

Closed
robmarkcole opened this issue Oct 20, 2023 · 3 comments · Fixed by #1684
Closed

Proposed updates to OSCD dataset #1683

robmarkcole opened this issue Oct 20, 2023 · 3 comments · Fixed by #1684
Labels
backwards-incompatible Changes that are not backwards compatible datasets Geospatial or benchmark datasets

Comments

@robmarkcole
Copy link
Contributor

robmarkcole commented Oct 20, 2023

Summary

        image1 = self._load_image(files["images1"])
        image2 = self._load_image(files["images2"])
        mask = self._load_target(str(files["mask"]))

        if self.transforms is not None:
            image = torch.cat([image1, image2])
            sample = {"image": image, "mask": mask}
            sample = self.transforms(sample)
            idx = sample["image"].shape[0] // 2
            image1 = sample["image"][:idx]
            image2 = sample["image"][idx:]

        sample = {"image1": image1, "image2": image2, "mask": mask}
        return sample

Rationale

Harmonise the use of bands arg and prepare for a ChangeDetectionTask

Implementation

No response

Alternatives

No response

Additional information

No response

@adamjstewart adamjstewart added datasets Geospatial or benchmark datasets backwards-incompatible Changes that are not backwards compatible labels Oct 20, 2023
@adamjstewart
Copy link
Collaborator

Agree with both of these changes. I think in #289 we decided to standardize on bands being a list of strings of band names, so any datasets that don't follow this are outdated.

@robmarkcole
Copy link
Contributor Author

Possibly we should also consider mirroring this dataset to huggingface as the native download is sloooow

image

@adamjstewart
Copy link
Collaborator

You'll need to figure out what license the data is distributed under and ensure that it allows for redistribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backwards-incompatible Changes that are not backwards compatible datasets Geospatial or benchmark datasets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants