Skip to content

Commit 9d63c98

Browse files
Add offical documentation and changed tensorflow description
1 parent 346c36b commit 9d63c98

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/guide/export.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ There is a draft PR in the RL Zoo about C++ export: https://github.com/DLR-RM/rl
195195
Export to ONNX-JS / ONNX Runtime Web
196196
------------------------------------
197197

198+
The official documentation is located at: https://onnxruntime.ai/docs/tutorials/web/build-web-app.html
199+
198200
Full example code: https://github.com/JonathanColetti/CarDodgingGym and demo: https://jonathancoletti.github.io/CarDodgingGym/
199201

200202
The code linked above is a complete example (using car dodging) that:
@@ -266,10 +268,12 @@ Export to tensorflowjs
266268
.. warning::
267269

268270
As of writing this (November 2025), (https://github.com/PINTO0309/onnx2tf) does not support tensorflow js. Thus, (https://github.com/tensorflow/tfjs-converter) is used. This is not currently maintained and requires old opsets/tf versions.
269-
Therefore, it is recommended you use onnx runtime for higher opsets
271+
270272

271273
In order for this to work, you must convert (SB3 => ONNX => Tensorflow => Tensorflowjs)
272274

275+
The opset version needs to be changed for the conversion. Please refer to the code above for more stable usage with a higer opset.
276+
273277
The following is a simple example that showcases the full conversion + inference
274278

275279
.. code-block:: python

0 commit comments

Comments
 (0)