From 3a213d9449e9e00dcf9655148cf89501d66c0c71 Mon Sep 17 00:00:00 2001 From: kuizhiqing Date: Fri, 11 Jun 2021 10:57:49 +0800 Subject: [PATCH] fix image batch bug (#33498) --- python/paddle/dataset/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/dataset/image.py b/python/paddle/dataset/image.py index c20672c2ce1..493a94e45d4 100644 --- a/python/paddle/dataset/image.py +++ b/python/paddle/dataset/image.py @@ -93,7 +93,7 @@ def batch_images_from_tar(data_file, :rtype: string """ batch_dir = data_file + "_batch" - out_path = "%s/%s" % (batch_dir, dataset_name) + out_path = "%s/%s_%s" % (batch_dir, dataset_name, os.getpid()) meta_file = "%s/%s.txt" % (batch_dir, dataset_name) if os.path.exists(out_path): -- GitLab