未验证 提交 6cacd63e 编写于 作者: K kuizhiqing 提交者: GitHub

fix image dataset bug (#33630)

上级 4bf9e11f
...@@ -94,7 +94,7 @@ def batch_images_from_tar(data_file, ...@@ -94,7 +94,7 @@ def batch_images_from_tar(data_file,
""" """
batch_dir = data_file + "_batch" batch_dir = data_file + "_batch"
out_path = "%s/%s_%s" % (batch_dir, dataset_name, os.getpid()) out_path = "%s/%s_%s" % (batch_dir, dataset_name, os.getpid())
meta_file = "%s/%s.txt" % (batch_dir, dataset_name) meta_file = "%s/%s_%s.txt" % (batch_dir, dataset_name, os.getpid())
if os.path.exists(out_path): if os.path.exists(out_path):
return meta_file return meta_file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册