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

I want to learn with my data, but I found an error. #39

Open
HONG-DEOK opened this issue Sep 1, 2023 · 4 comments
Open

I want to learn with my data, but I found an error. #39

HONG-DEOK opened this issue Sep 1, 2023 · 4 comments

Comments

@HONG-DEOK
Copy link

Traceback (most recent call last):
File "D:\3. Develop\2.AI\segmentation_anything_yaml\train.py", line 32, in
train_dataset = get_dataset(train_cfg.dataset)
File "D:\segmentation_anything_yaml\datasets_init_.py", line 28, in get_dataset
return segment_datasets[name](**cfg.params, transform=transform, target_transform=target_transform)
TypeError: init() got an unexpected keyword argument 'root'

How can I resolve TypeError?
a

I think it's a version issue. Can you tell me your version?
my cuda is 11.3, cudnn is v8.2.0.53

@ziqi-jin
Copy link
Owner

ziqi-jin commented Sep 5, 2023

my cuda is 10.2, the error seems that tell you there is a unexcepted parameter named 'root'

@Caz-T
Copy link

Caz-T commented Sep 18, 2023

I guess you might have specified your own dataset class and left some parameters unchanged. In the configuration yaml file, the key name referes to the name of the dataset class rather than that of the dataset itself. If you're not using the default VOC dataset (say, BaseSematicDataset) you'll need to remove the key root since in BaseSematicDataset class you don't need a root parameter.

@zsy7532
Copy link

zsy7532 commented Nov 9, 2023

How do you solve this problem?I met the same problem.

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

5 participants
@HONG-DEOK @ziqi-jin @Caz-T @zsy7532 and others