This commit is contained in:
2025-12-21 12:06:28 +01:00
parent c0374b3890
commit 94b83fb018
32 changed files with 281 additions and 212 deletions

View File

@@ -0,0 +1,16 @@
import os
# Paths to the folders
folder_to_check = "./datasets/roboflow/train/labels"
folder_with_files = "./datasets/unified/train/labels"
files_to_check = set(os.listdir(folder_to_check))
for filename in os.listdir(folder_with_files):
file_path = os.path.join(folder_with_files, filename)
if filename in files_to_check and os.path.isfile(file_path):
try:
os.remove(file_path)
print(f"Deleted: {file_path}")
except Exception as e:
print(f"Error deleting {file_path}: {e}")