Skip to content

Commit

Permalink
feat(doc): updated model export
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz committed Jun 21, 2023
1 parent b5bf121 commit e692f78
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/source/export.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#############
Model export
############

************
Model export
************

.. code:: bash
python3 -m scripts.export_jit_model --model-in-file "/path/to/model_checkpoint.pth" --model-out-file exported_model.pt --model-type mobile_resnet_9blocks --img-size 360
Then ``exported_model.pt`` can be reloaded without JoliGEN to perform
inference with an external software, e.g. `DeepDetect
<https://github.com/jolibrain/deepdetect>`_ with torch backend.
3 changes: 2 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ program `"Confiance.AI" <https://www.confiance.ai/en/>`_
:glob:
:hidden:

export
inference

.. toctree::
:maxdepth: 2
:caption: Server & API
Expand Down

0 comments on commit e692f78

Please sign in to comment.