import subprocess import os # 设置 PYTHONPATH 环境变量 pythonpath = '.' if 'PYTHONPATH' in os.environ: pythonpath += ':' + os.environ['PYTHONPATH'] os.environ['PYTHONPATH'] = pythonpath ROOT = "/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD" run_file = ROOT+"/eval_ood.py" subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=openmax",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=msp",\ "--batch-size=200",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=odin",\ "--batch-size=10",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=mds",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=ebo",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=gram",\ "--batch-size=20",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=gradnorm",\ "--batch-size=20",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=react",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=mls",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=klm",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=vim",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=knn",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ]) subprocess.run(["python", run_file, "--id-data=bronze2", \ "--root=/home/zhourixin/OOD_Folder/CODE/other_methods/openOOD_code/OpenOOD/results/bronze2_ours_resnet50_415_NotLine_train", \ "--postprocessor=dice",\ "--batch-size=100",\ "--save-score",\ "--save-csv",\ ])