未验证 提交 524a0692 编写于 作者: S SunGaofeng 提交者: GitHub

fix data transfer of youtube8m and kinetics to fit for python3 (#3268)

上级 7a5cca69
...@@ -68,7 +68,7 @@ def generate_pkl(entry): ...@@ -68,7 +68,7 @@ def generate_pkl(entry):
images = sorted(glob.glob(vid + '/*.jpg')) images = sorted(glob.glob(vid + '/*.jpg'))
ims = [] ims = []
for img in images: for img in images:
f = open(img) f = open(img, 'rb')
ims.append(f.read()) ims.append(f.read())
f.close() f.close()
......
...@@ -263,7 +263,7 @@ def main(files_pattern): ...@@ -263,7 +263,7 @@ def main(files_pattern):
coord.request_stop() coord.request_stop()
coord.join(threads) coord.join(threads)
print vid_num print(vid_num)
record_name = files_pattern.split('/')[-1].split('.')[0] record_name = files_pattern.split('/')[-1].split('.')[0]
outputdir = target_dir outputdir = target_dir
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册