Skip to content

Commit

Permalink
Fix double path.join ading ROOT twice in gather_cc
Browse files Browse the repository at this point in the history
  • Loading branch information
carlini committed Aug 3, 2021
1 parent 8838feb commit ed16e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/gather_cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def grab(line):
if row is None: continue
id, caption, url = row
fp = os.path.join(ROOT, split, str(id % 1000), str(id) + ".jpg")
if os.path.exists(os.path.join(ROOT,fp)):
if os.path.exists(fp):
out.write("%s\t%s\n"%(caption,fp))
else:
print("Drop", id)
Expand Down

0 comments on commit ed16e38

Please sign in to comment.