diff --git a/docs/en/flash_model/README.rst b/docs/en/flash_model/README.rst index 40562fc..2a1e33d 100644 --- a/docs/en/flash_model/README.rst +++ b/docs/en/flash_model/README.rst @@ -127,7 +127,7 @@ How To Use After the above-mentioned configuration, users can initialize and start using the models following the examples described in the `ESP-Skainet `_ repo. -Here, we only introduce the code implementation, which can also be found in `model_path.c <../src/model_path.c>`_ . +Here, we only introduce the code implementation, which can also be found in :project_file:`src/model_path.c`. .. only:: esp32 @@ -168,7 +168,7 @@ After completing the above configuration, the project will automatically generat - Initialize SD card Users must initialize SD card so the chip can load SD card. Users of `ESP-Skainet `_ can call ``esp_sdcard_init("/sdcard", num);`` to initialize any board supported SD cards. Otherwise, users need to write the initialization code themselves. After the above-mentioned steps, users can flash the project. - + - Read models User use ``esp_srmodel_init(model_path)`` to read models in ``model_path`` of SD card. @@ -189,7 +189,7 @@ After completing the above configuration, the project will automatically generat // step1: return models in flash or in sdcard // char *model_path = your_model_path: // partition_label or model_path in sdcard; - models = esp_srmodel_init(model_path); + models = esp_srmodel_init(model_path); // // step2: select the specific model by keywords diff --git a/docs/zh_CN/flash_model/README.rst b/docs/zh_CN/flash_model/README.rst index 1f9932c..9c51438 100644 --- a/docs/zh_CN/flash_model/README.rst +++ b/docs/zh_CN/flash_model/README.rst @@ -127,7 +127,7 @@ 当用户完成以上的配置选择后,可参考 `ESP-Skainet `_ 应用层仓库中的介绍,进行初始化和使用。 -这里主要介绍模型加载在用户工程中的代码实现,用户也可直接参考代码 `model_path.c <../src/model_path.c>`_ 。 +这里主要介绍模型加载在用户工程中的代码实现,用户也可直接参考代码 :project_file:`src/model_path.c`。 .. only:: esp32 @@ -188,7 +188,7 @@ // step1: return models in flash // char *model_path = your_model_path: // partition_label or model_path in sdcard; - models = esp_srmodel_init(model_path); + models = esp_srmodel_init(model_path); // // step2: select the specific model by keywords