Datasets:
Tasks:
Image Segmentation
Modalities:
Image
Formats:
imagefolder
Languages:
English
Size:
1K - 10K
ArXiv:
License:
Add files using upload-large-folder tool
Browse files- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_05-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_10-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_20-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_16-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_12-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_16-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-19_11-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_02-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_19-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_23-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_05-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_16-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_23-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_03-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_04-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_05-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_11-01-11_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_23-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_07-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_16-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_17-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_22-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_11-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_19-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_23-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_00-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_04-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_09-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_18-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_12-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_08-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_18-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_02-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_21-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-29_13-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_06-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_12-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_13-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_17-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_23-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_05-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_10-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_12-01-12_4.png +3 -0
- ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_21-01-11_4.png +3 -0
- script.py +84 -59
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_05-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_10-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_20-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-16_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_16-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-17_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_12-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-18_16-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-19_11-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_02-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_19-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-20_23-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_05-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_16-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-21_23-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_03-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_04-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_05-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_11-01-11_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-22_23-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_07-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_16-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_17-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-23_22-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_11-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_19-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-24_23-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_00-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_04-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_09-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_18-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-25_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_12-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-26_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_08-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-27_18-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_02-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-28_21-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-29_13-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_06-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_12-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_13-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_17-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-30_23-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_05-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_10-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_12-01-12_4.png
ADDED
|
Git LFS Details
|
ArabidopsisDataset/Roots/rpi14_2020-03-12_17-00/4/2020-03-31_21-01-11_4.png
ADDED
|
Git LFS Details
|
script.py
CHANGED
|
@@ -14,7 +14,7 @@ def get_all_source_folders(scrape_dir):
|
|
| 14 |
print(f"Error: Scrape directory '{scrape_dir}' does not exist.")
|
| 15 |
return source_folders
|
| 16 |
|
| 17 |
-
# Walk through the entire directory tree
|
| 18 |
for root, dirs, files in os.walk(scrape_dir):
|
| 19 |
for d in dirs:
|
| 20 |
source_folders[d].append(os.path.join(root, d))
|
|
@@ -25,84 +25,109 @@ def get_subfolder_names(folder_path):
|
|
| 25 |
"""Returns a list of subfolder names immediately inside a given directory."""
|
| 26 |
return [d for d in os.listdir(folder_path) if os.path.isdir(os.path.join(folder_path, d))]
|
| 27 |
|
| 28 |
-
def process_folders(scrape_dir, dest_root_path):
|
| 29 |
-
# 1. Scrape all folders from the source directory
|
| 30 |
source_folders = get_all_source_folders(scrape_dir)
|
| 31 |
if not source_folders:
|
| 32 |
print("No source folders found.")
|
| 33 |
return
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
# Pattern to extract the date and hour: YYYY-MM-DD_HH
|
| 43 |
file_pattern = re.compile(r'^(\d{4}-\d{2}-\d{2}_\d{2})-\d{2}-\d{2}')
|
| 44 |
|
| 45 |
-
#
|
| 46 |
-
for
|
| 47 |
-
|
| 48 |
-
if
|
| 49 |
-
print(f"NOTICE: Found {len(dest_paths)} destination matches for '{folder_name}'. Skipping.")
|
| 50 |
continue
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
continue
|
| 57 |
-
|
| 58 |
-
dest_path = dest_paths[0]
|
| 59 |
-
src_path = src_paths[0]
|
| 60 |
|
| 61 |
-
|
| 62 |
-
# We NO LONGER check if these exist in the destination first.
|
| 63 |
-
src_subfolders = get_subfolder_names(src_path)
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
-
#
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
print("\nProcess completed.")
|
| 102 |
|
| 103 |
if __name__ == "__main__":
|
| 104 |
# Define your paths here
|
| 105 |
-
SCRAPE_DIRECTORY = "
|
| 106 |
-
DESTINATION_ROOT = "
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
| 14 |
print(f"Error: Scrape directory '{scrape_dir}' does not exist.")
|
| 15 |
return source_folders
|
| 16 |
|
| 17 |
+
# Walk through the entire directory tree to map every available source folder
|
| 18 |
for root, dirs, files in os.walk(scrape_dir):
|
| 19 |
for d in dirs:
|
| 20 |
source_folders[d].append(os.path.join(root, d))
|
|
|
|
| 25 |
"""Returns a list of subfolder names immediately inside a given directory."""
|
| 26 |
return [d for d in os.listdir(folder_path) if os.path.isdir(os.path.join(folder_path, d))]
|
| 27 |
|
| 28 |
+
def process_folders(scrape_dir, dest_root_path, dry_run=True):
|
| 29 |
+
# 1. Scrape all folders from the source directory to build our lookup map
|
| 30 |
source_folders = get_all_source_folders(scrape_dir)
|
| 31 |
if not source_folders:
|
| 32 |
print("No source folders found.")
|
| 33 |
return
|
| 34 |
|
| 35 |
+
if not os.path.exists(dest_root_path):
|
| 36 |
+
print(f"Error: Destination root '{dest_root_path}' does not exist.")
|
| 37 |
+
return
|
| 38 |
+
|
| 39 |
+
print("=" * 60)
|
| 40 |
+
print(f"MODE: {'DRY RUN (Mapping Only)' if dry_run else 'EXECUTION (Copying Files)'}")
|
| 41 |
+
print("=" * 60)
|
| 42 |
|
| 43 |
# Pattern to extract the date and hour: YYYY-MM-DD_HH
|
| 44 |
file_pattern = re.compile(r'^(\d{4}-\d{2}-\d{2}_\d{2})-\d{2}-\d{2}')
|
| 45 |
|
| 46 |
+
# 2. Iterate exactly to the second level of the destination directory
|
| 47 |
+
for level1 in os.listdir(dest_root_path):
|
| 48 |
+
level1_path = os.path.join(dest_root_path, level1)
|
| 49 |
+
if not os.path.isdir(level1_path):
|
|
|
|
| 50 |
continue
|
| 51 |
|
| 52 |
+
for level2 in os.listdir(level1_path):
|
| 53 |
+
dest_path = os.path.join(level1_path, level2)
|
| 54 |
+
if not os.path.isdir(dest_path):
|
| 55 |
+
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
folder_name = level2
|
|
|
|
|
|
|
| 58 |
|
| 59 |
+
# 3. Look up the destination folder in our source map
|
| 60 |
+
src_paths = source_folders.get(folder_name, [])
|
| 61 |
+
|
| 62 |
+
# 4. Handle matching conditions
|
| 63 |
+
if not src_paths:
|
| 64 |
+
if dry_run:
|
| 65 |
+
print(f"[UNMATCHED] Dest: '{folder_name}' -> No source found.")
|
| 66 |
+
continue
|
| 67 |
+
|
| 68 |
+
if len(src_paths) > 1:
|
| 69 |
+
print(f"[CONFLICT] Dest: '{folder_name}' -> Matches {len(src_paths)} sources. Skipping.")
|
| 70 |
+
if dry_run:
|
| 71 |
+
for p in src_paths:
|
| 72 |
+
print(f" - {p}")
|
| 73 |
+
continue
|
| 74 |
|
| 75 |
+
# We have exactly one match
|
| 76 |
+
src_path = src_paths[0]
|
| 77 |
|
| 78 |
+
if dry_run:
|
| 79 |
+
print(f"[MAPPED] Dest: '{folder_name}' \n <- Source: '{src_path}'")
|
| 80 |
+
continue # Skip the actual file processing during a dry run
|
| 81 |
+
|
| 82 |
+
# ---------------------------------------------------------
|
| 83 |
+
# The following code only runs if dry_run=False
|
| 84 |
+
# ---------------------------------------------------------
|
| 85 |
+
|
| 86 |
+
# 5. Get the subfolders (e.g., 'camera') from the source
|
| 87 |
+
src_subfolders = get_subfolder_names(src_path)
|
| 88 |
+
|
| 89 |
+
# 6. Process files INSIDE the source subfolders
|
| 90 |
+
for subfolder in src_subfolders:
|
| 91 |
+
src_sub_path = os.path.join(src_path, subfolder)
|
| 92 |
+
dest_sub_path = os.path.join(dest_path, subfolder)
|
| 93 |
+
|
| 94 |
+
# Ensure the camera folder exists in the destination
|
| 95 |
+
os.makedirs(dest_sub_path, exist_ok=True)
|
| 96 |
+
|
| 97 |
+
# Get files and sort chronologically
|
| 98 |
+
files = [f for f in os.listdir(src_sub_path) if os.path.isfile(os.path.join(src_sub_path, f))]
|
| 99 |
+
files.sort()
|
| 100 |
|
| 101 |
+
selected_files = {}
|
| 102 |
+
for file_name in files:
|
| 103 |
+
match = file_pattern.search(file_name)
|
| 104 |
+
if match:
|
| 105 |
+
hour_key = match.group(1)
|
| 106 |
+
if hour_key not in selected_files:
|
| 107 |
+
selected_files[hour_key] = file_name
|
| 108 |
+
|
| 109 |
+
# 7. Copy the filtered files while checking for duplicates
|
| 110 |
+
copied_count = 0
|
| 111 |
+
for file_name in selected_files.values():
|
| 112 |
+
src_file = os.path.join(src_sub_path, file_name)
|
| 113 |
+
dest_file = os.path.join(dest_sub_path, file_name)
|
| 114 |
|
| 115 |
+
if os.path.exists(dest_file):
|
| 116 |
+
continue
|
| 117 |
+
|
| 118 |
+
shutil.copy2(src_file, dest_file)
|
| 119 |
+
copied_count += 1
|
| 120 |
+
|
| 121 |
+
if copied_count > 0:
|
| 122 |
+
print(f"Copied {copied_count} new files into '{folder_name}/{subfolder}'.")
|
| 123 |
|
| 124 |
print("\nProcess completed.")
|
| 125 |
|
| 126 |
if __name__ == "__main__":
|
| 127 |
# Define your paths here
|
| 128 |
+
SCRAPE_DIRECTORY = "/media/ngaggion/DATA/Raices/Datasets"
|
| 129 |
+
DESTINATION_ROOT = "/media/ngaggion/DATA/Raices/NewData/ArabidopsisDataset"
|
| 130 |
|
| 131 |
+
# Run first with dry_run=True to see the mappings.
|
| 132 |
+
# Change to False when you are ready to copy files.
|
| 133 |
+
process_folders(SCRAPE_DIRECTORY, DESTINATION_ROOT, dry_run=False)
|