yassouali / pytorch-segmentation

:art: Semantic segmentation models, datasets and losses implemented in PyTorch.
MIT License
1.68k stars 381 forks source link

TypeError: 'module' object is not callable #131

Closed HSH12956 closed 2 years ago

HSH12956 commented 2 years ago

Traceback (most recent call last): File "train.py", line 72, in main(config, args.resume) File "train.py", line 32, in main train_loader = get_instance(dataloaders, 'train_loader', config) File "train.py", line 26, in get_instance return getattr(module, config[name]['type'])(*args, **config[name]['args']) TypeError: 'module' object is not callable

yassouali commented 2 years ago

i think you just need to double check the name of the dataset you have in the config to match one of the class names in dataloaders/