From f0077fe969000c684f28f0b6986243042d5c58ec Mon Sep 17 00:00:00 2001 From: "bian.xie" Date: Tue, 14 Dec 2021 16:20:18 +0800 Subject: [PATCH] Update pipeline_http_client.py the second test_img_dir assignment is not necessary: after it is defined, it's not modified. We can use it anyway. --- deploy/pdserving/pipeline_http_client.py | 1 - 1 file changed, 1 deletion(-) diff --git a/deploy/pdserving/pipeline_http_client.py b/deploy/pdserving/pipeline_http_client.py index 0befe2f6..d944d768 100644 --- a/deploy/pdserving/pipeline_http_client.py +++ b/deploy/pdserving/pipeline_http_client.py @@ -36,5 +36,4 @@ for idx, img_file in enumerate(os.listdir(test_img_dir)): r = requests.post(url=url, data=json.dumps(data)) print(r.json()) -test_img_dir = "../../doc/imgs/" print("==> total number of test imgs: ", len(os.listdir(test_img_dir))) -- GitLab