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

Can not import Dataset #3

Closed
wangg12 opened this issue May 17, 2019 · 3 comments
Closed

Can not import Dataset #3

wangg12 opened this issue May 17, 2019 · 3 comments

Comments

@wangg12
Copy link

wangg12 commented May 17, 2019

Traceback (most recent call last):
  File "test_datasets.py", line 3, in <module>
    import pywick.datasets.tnt.dataset as dataset
  File "/data/pywick/pywick/datasets/tnt/dataset.py", line 1, in <module>
    from pywick.datasets.tnt.batchdataset import BatchDataset
  File "/data/pywick/pywick/datasets/tnt/batchdataset.py", line 2, in <module>
    from pywick.datasets.tnt.dataset import Dataset
ImportError: cannot import name 'Dataset'
@achaiah
Copy link
Owner

achaiah commented May 17, 2019

Hi, are you trying to build the package from source or are you trying to use the datasets in the tnt subpackage? The tnt subpackage is not part of the official API (will be deprecated) because you can find equivalents in either the pytorch datasets on the ones mentioned in the API. Could you highlight your usecase?

@wangg12
Copy link
Author

wangg12 commented May 18, 2019

I just ran the run_test.sh.

@achaiah
Copy link
Owner

achaiah commented May 19, 2019

Sorry I guess there was some old code that stuck around. I fixed the run_test script. The dataset tests aren't applicable any more and the tnt subfolder will probably be removed in the near future.

@achaiah achaiah closed this as completed May 19, 2019
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