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

Cannot import name 'stack_samples' from torchgeo.datasets #291

Closed
KennSmithDS opened this issue Dec 15, 2021 · 1 comment
Closed

Cannot import name 'stack_samples' from torchgeo.datasets #291

KennSmithDS opened this issue Dec 15, 2021 · 1 comment

Comments

@KennSmithDS
Copy link
Contributor

KennSmithDS commented Dec 15, 2021

Description of issue
When trying to go through the Getting Started tutorial, I get an ImportError on stack_samples in the first cell.

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/tmp/ipykernel_51260/1420171020.py in <module>
      4 from torch.utils.data import DataLoader
      5 
----> 6 from torchgeo.datasets import NAIP, ChesapeakeDE, **stack_samples**
      7 from torchgeo.datasets.utils import download_url
      8 from torchgeo.samplers import RandomGeoSampler

ImportError: cannot import name 'stack_samples' from 'torchgeo.datasets' (/home/ying/anaconda3/envs/torch/lib/python3.9/site-packages/torchgeo/datasets/__init__.py)

Steps to reproduce
Clean torchgeo install from conda install torchgeo via conda-forge channel

@KennSmithDS KennSmithDS changed the title Cannot import name 'stack_samples' Cannot import name 'stack_samples' from torchgeo.datasets Dec 15, 2021
@calebrob6
Copy link
Member

See #274

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

No branches or pull requests

2 participants