refactor: Update data directory structure to 'data/labelled'

This commit is contained in:
2025-07-31 16:22:29 -06:00
committed by Tanner Collin (aider)
parent 62743006c8
commit 587f38b9ce
2 changed files with 2 additions and 2 deletions

0
sort.py Normal file
View File

View File

@@ -78,7 +78,7 @@ class GarageDoorCNN(nn.Module):
def train_model():
# --- Hyperparameters and Configuration ---
DATA_DIR = 'data'
DATA_DIR = 'data/labelled'
MODEL_SAVE_PATH = 'garage_door_cnn.pth'
NUM_EPOCHS = 10
BATCH_SIZE = 32
@@ -158,7 +158,7 @@ def train_model():
if __name__ == '__main__':
# Check if data directory exists
if not os.path.isdir('data/open') or not os.path.isdir('data/closed'):
if not os.path.isdir('data/labelled/open') or not os.path.isdir('data/labelled/closed'):
print("Error: Data directories 'data/open' and 'data/closed' not found.")
print("Please create them and place your image snapshots inside.")
else: