Add __init__ in datasets/
Merge request reports
Activity
Filter activity
assigned to @agherghescu2411
Not sure what the change does?
There is indeed the problem that you cannot run the
datasets/
files directly (i.e. runningpython datasets/wikitext103.py
will give you aModuleNotFoundError: No module named 'datasets'
), at least on my side. Is that a problem for you too? Adding the__init__
file also doesn't seem to solve anything, as I still get the error. My (very hacky) fix is to change:from datasets.dataset_utils import *
to
try: from datasets.dataset_utils import * except ImportError: from dataset_utils import *
Would really love to avoid this type of nonsense, but this might be needed if we can't manage to get
__init__.py
to work. Any ideas?Weird, without it I cannot run
example_training.py
vladb@gaina1:~/optimus-prime/optimus$ python3 example_training.py Traceback (most recent call last): File "/home/vladb/optimus-prime/optimus/example_training.py", line 11, in <module> from datasets.wikitext103 import WikiText103Dataset ModuleNotFoundError: No module named 'datasets.wikitext103'
Please register or sign in to reply