From 990b6281fccad87e24dde14332f3f54b1223c257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=9B=BD=E5=BA=86?= <3224925783@qq.com> Date: Tue, 22 Nov 2022 07:30:26 +0000 Subject: [PATCH 1/2] add TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王国庆 <3224925783@qq.com> --- .../contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh diff --git a/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh b/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh new file mode 100644 index 000000000..55087d862 --- /dev/null +++ b/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/set_conda.sh @@ -0,0 +1,2 @@ +export PATH=/home/anaconda3/bin:$PATH +export LD_LIBRARY_PATH=/home/anaconda3/lib:$LD_LIBRARY_PATH \ No newline at end of file -- Gitee From c0c91c177c9b732fee196e1de5cbf8b1e35be847 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=9B=BD=E5=BA=86?= <3224925783@qq.com> Date: Tue, 22 Nov 2022 07:31:15 +0000 Subject: [PATCH 2/2] update TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/train_RT2_performance_1p.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王国庆 <3224925783@qq.com> --- .../test/train_RT2_performance_1p.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/train_RT2_performance_1p.sh b/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/train_RT2_performance_1p.sh index 5369e98f9..620e8b48d 100644 --- a/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/train_RT2_performance_1p.sh +++ b/TensorFlow/contrib/cv/Pix2pose_ID1164_for_TensorFlow/test/train_RT2_performance_1p.sh @@ -81,7 +81,12 @@ do data_path=`echo ${para#*=}` elif [[ $para == --ckpt_path* ]];then ckpt_path=`echo ${para#*=}` - fi + elif [[ $para == --conda_name* ]];then + conda_name=`echo ${para#*=}` + source set_conda.sh + echo "conda_name: $conda_name" + source activate $conda_name + fi done # #校验是否传入data_path,不需要修改 # if [[$data_path == ""]];then -- Gitee