import os """ 在需要批量执行py文件的目录下,输入执行文件的名称,运行此文件即可 """ image_file = "./input" # file_ = ["0331","0332","0333","0334"] image_list=os.listdir(image_file) for i in image_list: image_path=os.path.join(image_file,i) os.system("python predict.py --image_path "+str(image_path)+" --model_path ./model/model.pdparams" +" --config E:\A_paddle\PaddleSeg\configs\segformer\segformer_b5_cityscapes_1024x1024_160k.yml") print(str(i) + ".jpg 运行完毕" + "\n\n")
批量运行py文件
猜你喜欢
转载自blog.csdn.net/qq_46644680/article/details/130754506
今日推荐
周排行