I trained a model earlier in Flux.jl and saved it by doing:
@save "mymodel.bson" model
Now I want to load that model back and use it again. How can I achieve this in Flux?
I trained a model earlier in Flux.jl and saved it by doing:
@save "mymodel.bson" model
Now I want to load that model back and use it again. How can I achieve this in Flux?
Copyright © 2021 Jogjafile Inc.
Similar to the
@save
macro used above, there is also a built in@load
macro which comes from the BSON package. You can access it by doingusing BSON: @load
and then quite simply do something like:You can find out more about saving and loading models in the Flux.jl docs.