thuml / Transfer-Learning-Library

Transfer Learning Library for Domain Adaptation, Task Adaptation, and Domain Generalization
http://transfer.thuml.ai
MIT License
3.42k stars 557 forks source link

add dataset error #132

Closed Data-Designer closed 2 years ago

Data-Designer commented 2 years ago

Hello, I customized a data set, which fully complies with the specification, and modified the init file in common/vision/dataset and added the clef.py file. Why can't I recognize the data I added when running the code in the example.

_dann.py: error: argument -d/--data: invalid choice: 'Clef' (choose from 'Aircraft', 'Any', 'COCO70', 'CUB200', 'DTD', 'DomainNet', 'EuroSAT', 'ImageList', 'ImageNetR', 'ImageNetSketch', 'MNIST', 'MNISTRGB', 'Office31', 'OfficeCaltech', 'OfficeHome', 'Optional', 'OxfordFlowers102', 'OxfordIIITPet', 'PACS', 'PatchCamelyon', 'Resisc45', 'Retinopathy', 'SVHN', 'SVHNRGB', 'StanfordCars', 'StanfordDogs', 'Tuple', 'USPS', 'USPSRGB', 'VisDA2017', 'check_exits', 'downloaddata', 'amazon', 'camelyon17', 'civilcomments', 'iwildcam', 'ogb-molpcba', 'poverty', 'fmow', 'py150', 'rxrx1', 'globalwheat', 'celebA', 'domainnet', 'waterbirds', 'yelp', 'bdd100k', 'sqf', 'encode', 'Digits')

thucbx99 commented 2 years ago

Did you add this dataset in the __all__ attribute of init.py?

Data-Designer commented 2 years ago

thanks a lot . I found this problem this morning.

赵闯

@. | 签名由网易邮箱大师定制 On 4/29/2022 @.> wrote:

Did you add this dataset in the all attribute of init.py?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Atishaysjain commented 1 year ago

Hello,

I am facing the same issue as @Data-Designer. I have added the name of my dataset in the all attribute of init.py. I have added the py file corresponding to my dataset in the tllib/vision/datasets/ folder and have imported the same in the init file.

Yet, I am facing the error: dann.py: error: argument -d/--data: invalid choice: 'Allaple_A_L' (choose from 'Aircraft', 'Any', 'CIFAR10', 'CIFAR100', 'COCO70', 'CUB200', 'Caltech101', 'DTD', 'DomainNet', 'EuroSAT', 'Food101', 'ImageList', 'ImageNetR', 'ImageNetSketch', 'MNIST', 'MNISTRGB', 'Office31', 'OfficeCaltech', 'OfficeHome', 'Optional', 'OxfordFlowers102', 'OxfordIIITPets', 'PACS', 'PatchCamelyon', 'Resisc45', 'Retinopathy', 'SUN397', 'SVHN', 'SVHNRGB', 'StanfordCars', 'StanfordDogs', 'Tuple', 'USPS', 'USPSRGB', 'VisDA2017', 'check_exits', 'download_data', 'Digits')

Can someone guide me on the same. Thanks.