From 7d6d6297862d8874a9f2816ce73d2bee635de01b Mon Sep 17 00:00:00 2001 From: whaifree Date: Wed, 9 Oct 2024 12:04:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.idea/=20=E5=92=8C=20statu?= =?UTF-8?q?s.md=E5=88=B0=20.gitignore=20=E6=96=87=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=AA=E4=BA=BA=E9=85=8D=E7=BD=AE=E5=92=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=96=87=E4=BB=B6=E8=A2=AB=E8=B7=9F=E8=B8=AA?= =?UTF-8?q?=E3=80=82=E5=9C=A8=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC=E4=B8=AD?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BA=86=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E8=AF=AD=E5=8F=A5=E3=80=82=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BA=86=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97=E5=92=8C=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E8=BF=90=E8=A1=8C=E7=9A=84=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- status.md | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++ test_IVF.py | 2 +- trainExe.py | 8 +++- 3 files changed, 144 insertions(+), 2 deletions(-) create mode 100644 status.md diff --git a/status.md b/status.md new file mode 100644 index 0000000..7ce323b --- /dev/null +++ b/status.md @@ -0,0 +1,136 @@ +PFCFuse + +```angular2html + + +================================================================================ +The test result of TNO : +19.png +05.png +21.png +18.png +15.png +22.png +14.png +13.png +08.png +01.png +02.png +03.png +25.png +17.png +11.png +16.png +06.png +07.png +09.png +10.png +12.png +23.png +24.png +20.png +04.png + EN SD SF MI SCD VIF Qabf SSIM +PFCFuse 7.14 46.48 13.18 2.22 1.76 0.79 0.56 1.02 +================================================================================ + + +================================================================================ +The test result of RoadScene : +FLIR_07206.jpg +FLIR_08202.jpg +FLIR_05893.jpg +FLIR_06974.jpg +FLIR_04424.jpg +FLIR_08284.jpg +FLIR_07786.jpg +FLIR_08021.jpg +FLIR_07968.jpg +FLIR_01130.jpg +FLIR_06993.jpg +FLIR_07190.jpg +FLIR_06570.jpg +FLIR_07809.jpg +FLIR_06430.jpg +FLIR_08592.jpg +FLIR_00211.jpg +FLIR_08721.jpg +FLIR_05955.jpg +FLIR_04688.jpg +FLIR_07732.jpg +FLIR_06392.jpg +FLIR_00977.jpg +FLIR_05105.jpg +FLIR_04269.jpg +FLIR_07970.jpg +FLIR_05005.jpg +FLIR_07209.jpg +FLIR_07555.jpg +FLIR_06325.jpg +FLIR_04943.jpg +FLIR_video_02829.jpg +FLIR_08248.jpg +FLIR_04484.jpg +FLIR_08058.jpg +FLIR_06795.jpg +FLIR_06995.jpg +FLIR_05879.jpg +FLIR_04593.jpg +FLIR_08094.jpg +FLIR_08526.jpg +FLIR_08858.jpg +FLIR_09465.jpg +FLIR_05064.jpg +FLIR_05857.jpg +FLIR_05914.jpg +FLIR_04722.jpg +FLIR_06506.jpg +FLIR_06282.jpg +FLIR_04512.jpg + EN SD SF MI SCD VIF Qabf SSIM +PFCFuse 7.41 52.99 15.81 2.37 1.78 0.71 0.55 0.96 +================================================================================ + +``` + + + +20241008 +``` +/home/star/anaconda3/envs/pfcfuse/bin/python /home/star/whaiDir/PFCFuse/test_IVF.py + + +================================================================================ +The test result of TNO : +19.png +05.png +21.png +18.png +15.png +22.png +14.png +13.png +08.png +01.png +02.png +03.png +25.png +17.png +11.png +16.png +06.png +07.png +09.png +10.png +12.png +23.png +24.png +20.png +04.png + EN SD SF MI SCD VIF Qabf SSIM +PFCFuse 7.01 40.4 15.51 1.55 1.75 0.66 0.54 0.96 +================================================================================ + +Process finished with exit code 0 + +``` diff --git a/test_IVF.py b/test_IVF.py index a9d4542..c402ae7 100644 --- a/test_IVF.py +++ b/test_IVF.py @@ -19,7 +19,7 @@ current_time = datetime.datetime.now().strftime("%Y%m%d_%H%M%S") os.environ["CUDA_VISIBLE_DEVICES"] = "0" ckpt_path= r"/home/star/whaiDir/PFCFuse/models/whaiFusion10-08-16-20.pth" -for dataset_name in ["TNO"]: +for dataset_name in ["TNO","RoadScene"]: print("\n"*2+"="*80) model_name="PFCFuse " print("The test result of "+dataset_name+' :') diff --git a/trainExe.py b/trainExe.py index 7d73e8b..b49302b 100644 --- a/trainExe.py +++ b/trainExe.py @@ -12,7 +12,13 @@ output_file = f"/home/star/whaiDir/PFCFuse/logs/log_{current_time}.log" try: # 运行命令并将输出重定向到文件 with open(output_file, 'w') as file: - result = subprocess.run(command.split(), stdout=file, stderr=subprocess.STDOUT, check=True) + process = subprocess.run(command.split(), stdout=file, stderr=subprocess.STDOUT, check=True) + # 循环读取输出 + for line in process.stdout: + # 同时打印到控制台和写入文件 + print(line.strip()) + file.write(line) + file.flush() # 确保立即写入文件 # 如果命令成功执行,则打印确认信息 print(f"Command executed successfully. Output has been written to {output_file}")