From a8d3100011a512b3ae7eded8be60d268f73f412e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 07:49:40 +0000 Subject: [PATCH 1/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index a02c70345..b8893c80b 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -233,13 +233,13 @@ def main(argv=None): iterator = dataset.make_one_shot_iterator() images0, agelabels0, genderlabels0 = iterator.get_next() for step in range(num_steps): - start_time = time.time() + #start_time = time.time() images, agelabels_1, genderlabels_1 = sess.run([images0, agelabels0, genderlabels0]) # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From d45ad4316711c98134f02feff35789e4e1b5ab45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 07:56:04 +0000 Subject: [PATCH 2/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index b8893c80b..8babe1903 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - start_time = time.time() + #start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From 6dbbf016d1abec35ad06aea4441ae84dec7c511a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 07:58:39 +0000 Subject: [PATCH 3/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index 8babe1903..6eb28a2e5 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - #start_time = time.time() + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From bd2433c32fbba0b1f3cae4a446d7e755488a5c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 08:01:17 +0000 Subject: [PATCH 4/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index 6eb28a2e5..b8893c80b 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - start_time = time.time() + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From 049f66c7d85e707a1278d44979316b8d03553db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 08:03:17 +0000 Subject: [PATCH 5/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index b8893c80b..7de7475fd 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - start_time = time.time() + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From c853636c7962eb8dc34101ba92898607d24e0fe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 08:04:19 +0000 Subject: [PATCH 6/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index 7de7475fd..d18f47b31 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - start_time = time.time() + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee From 5976d656a9c39c1e6b12033d785223b1cde07b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B4=8B=E6=B4=8B?= <10527367+yang-yang-zhang123456@user.noreply.gitee.com> Date: Thu, 7 Apr 2022 08:05:49 +0000 Subject: [PATCH 7/7] update TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py. --- TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py index d18f47b31..19fc2bd44 100644 --- a/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py +++ b/TensorFlow/contrib/cv/LMTCNN_ID1278_for_TensorFlow/train.py @@ -239,7 +239,7 @@ def main(argv=None): # images1 = (np.reshape(images,(FLAGS.batch_size,227,227,3))).astype(np.float32) agelabels_1 = (np.reshape(agelabels_1, (FLAGS.batch_size))).astype(np.int32) genderlabels_1 = (np.reshape(genderlabels_1, (FLAGS.batch_size))).astype(np.int32) - start_time = time.time() + start_time = time.time() _,totallossvalue, agelossvalue, genderlossvalue = sess.run([ agegendertrain_op, totallosses, agelosses, genderlosses], feed_dict = {images_holder:images,agelabels_holder: agelabels_1, genderlabels_holder:genderlabels_1}) duration = time.time() - start_time -- Gitee