albumentations-team / autoalbument

AutoML for image augmentation. AutoAlbument uses the Faster AutoAugment algorithm to find optimal augmentation policies. Documentation - https://albumentations.ai/docs/autoalbument/
https://albumentations.ai/docs/autoalbument/
MIT License
199 stars 20 forks source link

Error calling 'dataset.SearchDataset' - `No module named 'dataset.SearchDataset' #46

Closed lilianabrandao closed 1 year ago

lilianabrandao commented 1 year ago

When I try to run the command autoalbument-search --config-dir dir_name I get the following error:

hydra.errors.HydraException: Error calling 'dataset.SearchDataset' : Encountered error: `No module named 'dataset.SearchDataset'` when loading module 'dataset.SearchDataset'

How can I fix it?

lilianabrandao commented 1 year ago

I managed to find the solution.

The problem was that dataset.py was in a subdirectory/subpackage. Hence, it was not automatically imported. More info here: https://stackoverflow.com/questions/8899198/module-has-no-attribute