diff --git a/src/data/gather_cc.py b/src/data/gather_cc.py index 7ee4711ce..44da701cf 100644 --- a/src/data/gather_cc.py +++ b/src/data/gather_cc.py @@ -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)