From 96cb46a8f9c48cca509ed3d1e115e45160c133bf Mon Sep 17 00:00:00 2001 From: "Shin, Eunwoo" Date: Thu, 20 Jun 2024 10:26:41 +0900 Subject: [PATCH] add execution code in docs --- .../additional_features/auto_configuration.rst | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/source/guide/explanation/additional_features/auto_configuration.rst b/docs/source/guide/explanation/additional_features/auto_configuration.rst index 69b32974bab..e4a59cbe8e6 100644 --- a/docs/source/guide/explanation/additional_features/auto_configuration.rst +++ b/docs/source/guide/explanation/additional_features/auto_configuration.rst @@ -84,13 +84,16 @@ To use this feature, add the following parameter: .. code-block:: python - Need to update! + from otx.engine import Engine + + engine = Engine(data_root="") + engine.train(adaptive_bs="Safe") .. tab-item:: CLI .. code-block:: bash - Need to update! + (otx) ...$ otx train ... --adaptive_bs Safe 2. Find the maximum executable batch size (`Full` mode) @@ -107,13 +110,16 @@ To use this feature, add the following parameter: .. code-block:: python - Need to update! + from otx.engine import Engine + + engine = Engine(data_root="") + engine.train(adaptive_bs="Full") .. tab-item:: CLI .. code-block:: bash - Need to update! + (otx) ...$ otx train ... --adaptive_bs Full .. Warning::