From 5507b44c00fb1fa1c24b1654f48913b2dfc73682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E4=BF=8A=E8=BE=89?= <11181965+zhujunhui1@user.noreply.gitee.com> Date: Wed, 8 Feb 2023 08:31:20 +0000 Subject: [PATCH] =?UTF-8?q?update=20TensorFlow/contrib/cv/DeepMatchVO=5FID?= =?UTF-8?q?2363=5Ffor=5FTensorFlow/deep=5Fslam.py.=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=8A=A8=E6=80=81lossscale=20=EF=BC=8C=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=B2=BE=E5=BA=A6=E8=BE=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 朱俊辉 <11181965+zhujunhui1@user.noreply.gitee.com> --- .../contrib/cv/DeepMatchVO_ID2363_for_TensorFlow/deep_slam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TensorFlow/contrib/cv/DeepMatchVO_ID2363_for_TensorFlow/deep_slam.py b/TensorFlow/contrib/cv/DeepMatchVO_ID2363_for_TensorFlow/deep_slam.py index 3260a2355..ae97fae69 100644 --- a/TensorFlow/contrib/cv/DeepMatchVO_ID2363_for_TensorFlow/deep_slam.py +++ b/TensorFlow/contrib/cv/DeepMatchVO_ID2363_for_TensorFlow/deep_slam.py @@ -190,7 +190,7 @@ class DeepSlam(object): smooth_loss + opt.pose_weight * pose_loss + opt.match_weight * match_loss with tf.name_scope("train_op"): - ''' + # lossscale train_vars = [var for var in tf.trainable_variables()] optt = tf.train.AdamOptimizer(opt.learning_rate, opt.beta1) @@ -200,7 +200,7 @@ class DeepSlam(object): self.train_op = slim.learning.create_train_op(total_loss, optim) self.global_step = tf.Variable(0, name='global_step', trainable=False) self.incr_global_step = tf.assign(self.global_step, self.global_step+1) - ''' + # yuanshi train_vars = [var for var in tf.trainable_variables()] -- Gitee