From c46697e87d5fdfe07948e76c75e7c1d8dca3cfe3 Mon Sep 17 00:00:00 2001 From: JimmyYang20 Date: Tue, 10 Aug 2021 14:11:50 +0800 Subject: [PATCH] fix il doc Signed-off-by: JimmyYang20 --- .../helmet_detection/README.md | 43 ++++++++++--------- examples/storage/s3/README.md | 15 ++++--- 2 files changed, 32 insertions(+), 26 deletions(-) diff --git a/examples/incremental_learning/helmet_detection/README.md b/examples/incremental_learning/helmet_detection/README.md index e96c695a1..fff82d4c0 100644 --- a/examples/incremental_learning/helmet_detection/README.md +++ b/examples/incremental_learning/helmet_detection/README.md @@ -12,49 +12,50 @@ and updates models based on the data generated at the edge. Follow the [Sedna installation document](/docs/setup/install.md) to install Sedna. ### Prepare Model -In this example, we need to prepare base model and deploy model in advance. +In this example, we need to prepare base model and deploy model in advance. +download [models](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/model.tar.gz), including base model and deploy model. - - -download [models](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/model.tar.gz), including base model and deploy model. ``` cd / wget https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/models.tar.gz tar -zxvf models.tar.gz ``` ### Prepare for Inference Worker -in this example, we simulate a inference worker for helmet detection, the worker will upload hard examples to `HE_SAVED_URL`, while -it inferences data from local video. we need to make following preparations: -* make sure following localdirs exist +in this example, we simulate a inference worker for helmet detection, the worker will upload hard examples to `HE_SAVED_URL`, while +it inferences data from local video. we need to make following preparations: + +* make sure following localdirs exist ``` mkdir -p /incremental_learning/video/ mkdir -p /incremental_learning/he/ mkdir -p /data/helmet_detection mkdir /output - ``` -* download [video](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/video.tar.gz), unzip video.tar.gz, and put it into `/incremental_learning/video/` + +* download [video](https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/video.tar.gz), unzip video.tar.gz, and put it into `/incremental_learning/video/` ``` cd /incremental_learning/video/ wget https://kubeedge.obs.cn-north-1.myhuaweicloud.com/examples/helmet-detection/video.tar.gz tar -zxvf video.tar.gz ``` + ### Prepare Image this example use the image: ``` kubeedge/sedna-example-incremental-learning-helmet-detection:v0.3.0 ``` -This image is generated by the script [build_images.sh](/examples/build_image.sh), used for creating training, eval and inference worker. -### Create Incremental Job -in this example, `$WORKER_NODE` is a custom node, you can fill it which you actually run. +This image is generated by the script [build_images.sh](/examples/build_image.sh), used for creating training, eval and inference worker. +### Create Incremental Job +in this example, `$WORKER_NODE` is a custom node, you can fill it which you actually run. ``` WORKER_NODE="edge-node" ``` -Create Dataset + +Create Dataset ``` kubectl create -f - <