From 504a1231abe35b282357016ca8fb499007e3ae86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B0=B8=E6=B8=85?= Date: Tue, 13 Dec 2022 12:49:58 +0000 Subject: [PATCH 1/4] update TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李永清 --- .../contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py index 2ede39232..da95e1c50 100644 --- a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py +++ b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/utils/datasets.py @@ -189,7 +189,7 @@ def load_json_dataset(json_file_pattern, processor, max_records=None, shuffle_si if premap_func is not None: ds = premap_func(ds) - ds = ds.map(processor.process_json) + ds = ds.map(processor.process_json, num_parallel_calls=64) return ds -- Gitee From 9986d4d0ead1b01621480027b071af493d96973b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B0=B8=E6=B8=85?= Date: Tue, 13 Dec 2022 13:00:47 +0000 Subject: [PATCH 2/4] update TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李永清 --- TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md index fda58942f..645f013c3 100644 --- a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md +++ b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md @@ -75,6 +75,12 @@ UltraFast是基于点回归的方式进行车道线识别的网络模型 |---------------|-------|-------| | UltraFast Acc | 99.7% | 99.7% | +- 性能结果比对 + +| 性能指标项 | GPU实测 | NPU实测 | +|---------------|-------|-------| +| FPS | 61.76 | 36.17 | +

高级参考

-- Gitee From 26d23a147e77f366b3cc62f2911fb66701d0952f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B0=B8=E6=B8=85?= Date: Tue, 13 Dec 2022 13:01:13 +0000 Subject: [PATCH 3/4] update TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李永清 --- TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md index 645f013c3..2d24c7c41 100644 --- a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md +++ b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/README.md @@ -79,7 +79,7 @@ UltraFast是基于点回归的方式进行车道线识别的网络模型 | 性能指标项 | GPU实测 | NPU实测 | |---------------|-------|-------| -| FPS | 61.76 | 36.17 | +| FPS | 36.17 |61.76 | -- Gitee From aeadd5f295b9722f79dc05427d81d2f2151c7318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=B0=B8=E6=B8=85?= Date: Tue, 13 Dec 2022 13:16:19 +0000 Subject: [PATCH 4/4] update TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李永清 --- .../contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py index 582a88636..d0d38ad16 100644 --- a/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py +++ b/TensorFlow2/contrib/cv/UltraFast_for_TensorFlow2/train_ultrafast.py @@ -28,6 +28,8 @@ import npu_device as npu +npu_device.global_options().op_compiler_cache_mode="enable" +npu_device.global_options().op_compiler_cache_dir="/mnt/home/test_user08/UltraFast_NPU/my_kernel_cache" npu.open().as_default() import tensorflow as tf -- Gitee