upytorch icon indicating copy to clipboard operation
upytorch copied to clipboard

Loading trained model

Open adrian70000 opened this issue 2 years ago • 1 comments

Hi,

I trained my model on my PC and I am trying to load it on esp32 board by using:

model.load_state_dict(torch.load("parameters.pt"))

Which results in:

AttributeError: 'module' object has no attribute 'load'

Am I missing something or is loading pretrained models really not implemented? Where are the model parameters(weights and biases) stored? Can they be exported and imported?

adrian70000 avatar Apr 26 '22 16:04 adrian70000

Hi @adrian70000, right, unfortunately the loading of the pretraind models were not implemented. I might find some time to work on it in the future if people actually find this project useful (it's just a toy project when I started it).

ljk53 avatar May 19 '22 11:05 ljk53