From 57c130d5c8a3de06cd1ccd633c0cd2ab6d254c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BD=A6=E5=9B=BD?= Date: Tue, 1 Aug 2023 02:37:59 +0000 Subject: [PATCH 1/4] update ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙彦国 --- ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md index 4b5811973..bfe431d31 100644 --- a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md +++ b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md @@ -50,7 +50,7 @@ python3 pb_to_pbtxt.py 20180408-102900.pb 1.删除第一个节点batch_size -2.第二个节点phase_train的op修改为const +2.第二个节点phase_train的op修改为Const 3.删除第三个节点batch_join/fifo_queue -- Gitee From 697e85b78c3756f3f1294ab3550b7617ac4569d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BD=A6=E5=9B=BD?= Date: Tue, 1 Aug 2023 02:47:31 +0000 Subject: [PATCH 2/4] update ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙彦国 --- .../built-in/cv/Facenet_for_ACL/README.md | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md index bfe431d31..e7d80b211 100644 --- a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md +++ b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/README.md @@ -50,7 +50,28 @@ python3 pb_to_pbtxt.py 20180408-102900.pb 1.删除第一个节点batch_size -2.第二个节点phase_train的op修改为Const +2.第二个节点phase_train修改为: +node { + name: "phase_train" + op: "Const" + attr { + key: "dtype" + value { + type: DT_BOOL + } + } + attr { + key: "value" + value { + tensor { + dtype: DT_BOOL + tensor_shape { + } + bool_val: false + } + } + } +} 3.删除第三个节点batch_join/fifo_queue -- Gitee From 08c43aef33ba96a1e6d703374b84b4dfeec988da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BD=A6=E5=9B=BD?= Date: Mon, 7 Aug 2023 00:58:34 +0000 Subject: [PATCH 3/4] update ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙彦国 --- .../built-in/cv/Facenet_for_ACL/script/preprocess_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data.py b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data.py index 5d839bb5a..0eedf0c7e 100644 --- a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data.py +++ b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data.py @@ -149,7 +149,7 @@ def main(args): control_placeholder = tf.compat.v1.placeholder(tf.int32, shape=(None, 1), name='control') phase_train_placeholder = tf.compat.v1.placeholder(tf.bool, name='phase_train') - nrof_preprocess_threads = 4 + nrof_preprocess_threads = 1 image_size = (args.image_size, args.image_size) eval_input_queue = data_flow_ops.FIFOQueue(capacity=2000000, dtypes=[tf.string, tf.int32, tf.int32], -- Gitee From 4aee181431f9f8678084396c46651939723d2fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BD=A6=E5=9B=BD?= Date: Mon, 7 Aug 2023 00:59:47 +0000 Subject: [PATCH 4/4] rename preprocess_data_forquant.py to preprocess_data_fp32.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙彦国 --- .../{preprocess_data_forquant.py => preprocess_data_fp32.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/{preprocess_data_forquant.py => preprocess_data_fp32.py} (97%) diff --git a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_forquant.py b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_fp32.py similarity index 97% rename from ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_forquant.py rename to ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_fp32.py index 8563095c5..f2e7b62b7 100644 --- a/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_forquant.py +++ b/ACL_TensorFlow/built-in/cv/Facenet_for_ACL/script/preprocess_data_fp32.py @@ -150,7 +150,7 @@ def main(args): control_placeholder = tf.compat.v1.placeholder(tf.int32, shape=(None, 1), name='control') phase_train_placeholder = tf.compat.v1.placeholder(tf.bool, name='phase_train') - nrof_preprocess_threads = 4 + nrof_preprocess_threads = 1 image_size = (args.image_size, args.image_size) eval_input_queue = data_flow_ops.FIFOQueue(capacity=2000000, dtypes=[tf.string, tf.int32, tf.int32], -- Gitee