From ed16e38a6bb18ce5b86c9617309f2a5146332e8c Mon Sep 17 00:00:00 2001 From: Nicholas Carlini Date: Tue, 3 Aug 2021 22:18:30 +0000 Subject: [PATCH] Fix double path.join ading ROOT twice in gather_cc --- src/data/gather_cc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)