mmasana / FACIL

Framework for Analysis of Class-Incremental Learning with 12 state-of-the-art methods and 3 baselines.
https://arxiv.org/pdf/2010.15277.pdf
MIT License
512 stars 98 forks source link

There is a bug when running the code #25

Closed zhl98 closed 1 year ago

zhl98 commented 1 year ago

Traceback (most recent call last): File "src/main_incremental.py", line 13, in from datasets.data_loader import get_loaders ModuleNotFoundError: No module named 'datasets.data_loader'

mmasana commented 1 year ago

In the datasets folder there is a file called data_loader.py. The error seems to say as if it does not exist. Check that your paths are correct, that the file exists on that location and that you have the necessary permissions to run it.

zhl98 commented 1 year ago

image The file is exist. And i also have permission to read it, But it's strange that he just made this mistake. And the code has not been modified since the clone came down.

mmasana commented 1 year ago

I just cloned a fresh version and if I do python3 -u src/main_incremental.py it works without this error. I'm not sure why it cannot import from that file.

Maybe you can try adding a __init__.py file? This could help with making sure that the path is visible to the interpreter.

zhl98 commented 1 year ago

ok,Thank you very much. After adding a init.py file ,this bug disappears.