Open Syzygianinfern0 opened 2 years ago
Please fill in the issue template. If you only want to save the full agent you do not need to do any TF stuff, only use save
and load
functions (see examples in docs). We can not offer custom tech support for saving/loading in a custom way like this.
we also highly recommend to switch to Stable-Baselines3 (PyTorch).
we also highly recommend to switch to Stable-Baselines3 (PyTorch).
Yeah that is what I currently use. I just need to run some old code for a comparison. I just have their provided weights.
Yeah that is what I currently use. I just need to run some old code for a comparison. I just have their provided weights.
In that case you should look at the set_parameters
function in the SB3 documentation :).
You can close this issue if your question has been answered.
I am trying to load a pre-trained model from some old code using this framework and my familiarity with tensorflow is very limited. I've tried multiple things to load the model but I am unable to find the right way 🤯
Here is how the model is created and saved. I just want to load back the weights after saving for evaluation.
Below, I've shown a representative of how the model is created then stored.