mirror of
https://github.com/PaddlePaddle/PaddleClas.git
synced 2025-06-03 21:55:06 +08:00
support to specify save dir
This commit is contained in:
parent
bf865cb0d8
commit
6374657f2a
@ -144,7 +144,8 @@ def main(config):
|
||||
for idx, image_file in enumerate(image_list):
|
||||
img = cv2.imread(image_file)[:, :, ::-1]
|
||||
output = system_predictor.predict(img)
|
||||
draw_bbox_results(img, output, image_file)
|
||||
save_dir = config["Global"]["output_dir"]
|
||||
draw_bbox_results(img, output, image_file, save_dir=save_dir)
|
||||
print(output)
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user