Closed Shengyu-Liu558 closed 3 years ago
using pytorch syntax,
import torch
modelname = f'your_modelname_here.bin'
torch.save(model.network.state_dict(), modelname )
to load model,
model.load_network_from_file(model_path=modelname)
When I load the trained model by "model.load_network_from_file(model_path=modelname)",it is error, could I need to change the load code?
next quesition
hi @Shengyu-Liu558
With NERDA==1.0.0, see functions:
python model.save_network
python model.load_network_from_file
Thank you so much for you feedback.
Hello, How to save the model that I have trained through code?