Hi,
I am trying to run the lesson3-imdb jupyter notebook on Sagemaker. AIl cells run well except for all those involving loading a Databunch object that was previously saved.
Cell Examples include:
data = TextDataBunch.load(path)
or
data_lm = TextLMDataBunch.load(path, ‘tmp_lm’, bs=bs)
They all fail with something similar to:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/ec2-user/.fastai/data/imdb_sample/tmp/itos.pkl’
or
NotADirectoryError: [Errno 20] Not a directory: ‘/home/ec2-user/.fastai/data/imdb/tmp_lm/itos.pkl’
It seems like the “.save” methods preceding the loading cells do not produce the outputs expected.
For instance, the:
data_lm.save(‘tmp_lm’) produces a file called ‘tmp_lm’ and not a directory
which leads to the error:
NotADirectoryError: [Errno 20] Not a directory: ‘/home/ec2-user/.fastai/data/imdb/tmp_lm/itos.pkl’
Anyone else encountering these errors please?
Thank you