Created a pretrained model but does not seem to working
I have loaded my model and getting this error message:Traceback (most recent call last):
  File "/home/user/app/app.py", line 3, in <module>
    learn = load_learner('finetuned.pth')
  File "/usr/local/lib/python3.10/site-packages/fastai/learner.py", line 451, in load_learner
    res.dls.cpu()
AttributeError: 'collections.OrderedDict' object has no attribute 'dls'Does this mean I have loaded or trained my model incorrectly?Thanls
2024-07-03T11:00:15Z
I seem to have solved but dont understand why! Had some modules that werent needed in the requirements file. deleted them and app started to work.
2024-07-03T23:00:52Z
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.