You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?

I think it's a version issue. Can you tell me your version?
my cuda is 11.3, cudnn is v8.2.0.53
The text was updated successfully, but these errors were encountered: