I’m on my second view of the part 1 of the course. It’s been great so far but I have often experienced issues with the notebooks while trying to load/unzip datasets and export models with factory built FastAi tools.
I’ve decided to come up here and try to get an insight for one of these issues I haven’t been able to solve yet. After training my Unet learner in lesson7-superres-gan, I tried to learn_gen.export() to avoid having to retrain my model again if my notebook shut down.
Unfortunately I encounter three issues:
- the output of the export() command has been an empty “export.pkl”, there is literaly nothing in there, zero bytes.
- when I type learn_gen in the notebook it is not empty
- when I go learn_gen.load(<export.pkl Path object>) I get a
FileNotFoundError: [Errno 2] No such file or directory: '/notebooks/course-v3/nbs/dl1/data/oxford-iiit-pet/export.pkl.pth
I don’t know why it keeps adding the .pth extension in here.
I use an online free GPU from Paperspace.
If there is any in depth tutorial on how to manage local files with FastAI I’d been happy to learn from it because I’m having a lot of similar issues.
Thank you for your help !