Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix bugs in im2rec.py #3958

Merged
merged 2 commits into from
Nov 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tools/im2rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def write_worker(q_out, fname, working_dir):
print('time:', cur_time - pre_time, ' count:', count)
pre_time = cur_time
count += 1
fout.close()
os.remove(fname)
os.rename(fname+'.tmp', fname)

def parse_args():
Expand Down