-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How to correctly export a TD3 model #1766
Comments
Hello, what do you mean by exporting to pycharm? |
Thanks for answering. Obviously I made a mistake, I meant PyTorch. Yes, I read the entire documentation #https://readthedocs.org/projects/stable-baselines/downloads/pdf/master/ but there is nothing related to the TD3. |
To clarify, I know that I have to use get_parameters function to obtain model parameters and then construct the network |
This should be the relevant section for you: https://stable-baselines3.readthedocs.io/en/master/guide/export.html#export-to-onnx (SAC is very similar to TD3) also relevant issue: onnx in matlab: https://de.mathworks.com/help/deeplearning/ref/importnetworkfromonnx.html |
Thank you very much for answering. The links that you gave me were useful. Now I managed to export the model in MATLAB. |
❓ Question
First of all, thank you very much for the very well-implemented library. I have an already trained TD3 model that I need to export in C. Basically I want to put the model into a controller that, given the observations, gives me the correct action to take. My idea is to export the SB3 model to Pycharm and then, using MATLAB, to C. The point is that I am not able to export it into Pycharm. My model uses the following net_arch = [1000, 500, 400, 300]. I searched in previous discussions and I found some material related to the old PPO2 algorithm only where action_probability(obs) was still present. Can you help me? Thank you in advance! :)
Checklist
The text was updated successfully, but these errors were encountered: