timeseriesAI / tsai

Time series Timeseries Deep Learning Machine Learning Python Pytorch fastai | State-of-the-art Deep Learning library for Time Series and Sequences in Pytorch / fastai
https://timeseriesai.github.io/tsai/
Apache License 2.0
4.95k stars 625 forks source link

Fixed learner paths in load_all #772

Closed vrodriguezf closed 1 year ago

vrodriguezf commented 1 year ago

I noticed that when I saved the learners with save_all in a folder different than '.', load_all was crashing. The reason is that the loaded learner still haa the attributes path and model_dir set to the values it had when it was saved. I added two lines in load_all to replace those values with something that allows to load the model using the path and model_dir arguments.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

oguiza commented 1 year ago

Gracias @vrodriguezf !!