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