From 76369793f22d5164ca91dffbc5a95978d627be39 Mon Sep 17 00:00:00 2001 From: zwx <284784862@qq.com> Date: Mon, 24 Oct 2022 09:21:55 +0800 Subject: [PATCH 1/2] issue_ID0058 --- .../ResNet50_ID0058_for_TensorFlow/scripts/train_1p.sh | 3 ++- .../ResNet50_ID0058_for_TensorFlow/scripts/train_sample.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_1p.sh b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_1p.sh index 3f5c4013a..e4c31f44f 100644 --- a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_1p.sh +++ b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_1p.sh @@ -19,7 +19,8 @@ mkdir -p ${currentDir}/d_solution/ckpt${DEVICE_ID} env > ${currentDir}/log/env_${device_id}.log #start exec -python3.7 ../src/mains/res50.py \ +cd ${currentDir}/../ +python3.7 ${currentDir}/../src/mains/res50.py \ --config_file=res50_256bs_1p \ --max_train_steps=1000 \ --iterations_per_loop=100 \ diff --git a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_sample.sh b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_sample.sh index 9b655c0fb..3258fc5e1 100644 --- a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_sample.sh +++ b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/scripts/train_sample.sh @@ -21,7 +21,8 @@ mkdir -p ${currentDir}/d_solution/ckpt${DEVICE_ID} env > ${currentDir}/log/env_${device_id}.log #start exec -python3.7 ../src/mains/res50.py \ +cd ${currentDir}/../ +python3.7 ${currentDir}/../src/mains/res50.py \ --config_file=res50_256bs_8p \ --max_train_steps=1000 \ --iterations_per_loop=100 \ -- Gitee From 83516591a5cddc2f122745e944e5d9977560166e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E8=BD=A9?= <10359565+zhang-wenxuan09@user.noreply.gitee.com> Date: Mon, 24 Oct 2022 01:34:15 +0000 Subject: [PATCH 2/2] update TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/README.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张文轩 <10359565+zhang-wenxuan09@user.noreply.gitee.com> --- .../ResNet50_ID0058_for_TensorFlow/README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/README.md b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/README.md index 5ff826c98..07b2923d9 100644 --- a/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/README.md +++ b/TensorFlow/built-in/cv/image_classification/ResNet50_ID0058_for_TensorFlow/README.md @@ -139,16 +139,28 @@ python3.7 ../src/mains/res50.py \ ``` More parameters are in --config_file under src/configs. ```shell -cd /path/to/Modelzoo_Resnet50_HC/scripts +cd /path/to/ResNet50_ID0058_for_TensorFlow/scripts bash train_1p.sh ``` 8P training is similar to the former: ```shell -cd /path/to/Modelzoo_Resnet50_HC/scripts +cd /path/to/ResNet50_ID0058_for_TensorFlow/scripts bash train_8p.sh ``` +We recommend using the updated training shell instructions in `/test`,examples: +``` +cd /path/to/ResNet50_ID0058_for_TensorFlow/test +bash train_performance_bs32_1p.sh +``` +8P training is also similar to the former: +``` +cd /path/to/ResNet50_ID0058_for_TensorFlow/test +bash train_performance_bs32_8p.sh +``` + + ##### ascend_distribute Training training shell `./test/train_performance_distribute.sh`, change from `./test/train_performance_bs256_hw192_8p.sh` -- Gitee