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

Dataloader returning 0x0 images/masks with dev version #439

Closed
sofstef opened this issue Feb 28, 2022 · 3 comments
Closed

Dataloader returning 0x0 images/masks with dev version #439

sofstef opened this issue Feb 28, 2022 · 3 comments
Labels
samplers Samplers for indexing datasets

Comments

@sofstef
Copy link

sofstef commented Feb 28, 2022

I was using version 0.3.0.dev0 to see if it would solve a bounding box issue I was having (possibly related to #319) and something very strange happens now even when I just try and load the datasets I'm working with. Below are screenshots from running exactly the same code with the stable and dev version:

Screenshot 2022-02-28 at 15 22 36

Screenshot 2022-02-28 at 15 25 43

Any thoughts on why this might be happening?

@adamjstewart
Copy link
Collaborator

This is due to #294. By default, the size parameter is now in pixel units, not CRS units. See https://torchgeo.readthedocs.io/en/latest/api/samplers.html#units for how to restore the old behavior if you really want to specify size in CRS units.

@adamjstewart adamjstewart added the samplers Samplers for indexing datasets label Feb 28, 2022
@sofstef
Copy link
Author

sofstef commented Feb 28, 2022

thanks @adamjstewart, that's actually a handy upgrade.

@calebrob6
Copy link
Member

Thanks for report @sofstef! Going to mark this as closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samplers Samplers for indexing datasets
Projects
None yet
Development

No branches or pull requests

3 participants