From 413cbd7ce0a443ca777877d14ff0485992c367d0 Mon Sep 17 00:00:00 2001
From: zhangbin <11085358@bbktel.com>
Date: Fri, 26 Oct 2018 11:20:00 +0800
Subject: [PATCH] modified source path of moving, so that it can find UCF-101
 dataset

---
 data/1_move_files.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/data/1_move_files.py b/data/1_move_files.py
index 23f663f..93cd45e 100644
--- a/data/1_move_files.py
+++ b/data/1_move_files.py
@@ -55,14 +55,15 @@ def move_files(file_groups):
 
             # Check if we have already moved this file, or at least that it
             # exists to move.
-            if not os.path.exists(filename):
-                print("Can't find %s to move. Skipping." % (filename))
+            src = os.path.join("UCF-101", classname, filename)
+            if not os.path.exists(src):
+                print("Can't find %s to move. Skipping." % (src))
                 continue
 
             # Move it.
             dest = os.path.join(group, classname, filename)
-            print("Moving %s to %s" % (filename, dest))
-            os.rename(filename, dest)
+            print("Moving %s to %s" % (src, dest))
+            os.rename(src, dest)
 
     print("Done.")
 
-- 
GitLab