bhimrazy commited on
Commit
747c4cd
1 Parent(s): 94709b2

Adds scripts to split the dataset

Browse files
Files changed (1) hide show
  1. scripts/split_dataset.py +1 -1
scripts/split_dataset.py CHANGED
@@ -21,7 +21,7 @@ def main(data_dir, csv_path, train_csv_path, val_csv_path, test_size=0.2, random
21
 
22
  if __name__ == "__main__":
23
  parser = argparse.ArgumentParser(description="Split dataset into train and validation sets.")
24
- parser.add_argument("--data_dir", type=str, default="data/diabetic-retinopathy-dataset/train", help="Directory containing images.")
25
  parser.add_argument("--csv_path", type=str, default="data/diabetic-retinopathy-dataset/trainLabels.csv", help="Path to CSV file containing image labels.")
26
  parser.add_argument("--train_csv_path", type=str, default="data/diabetic-retinopathy-dataset/train.csv", help="Path to save train CSV file.")
27
  parser.add_argument("--val_csv_path", type=str, default="data/diabetic-retinopathy-dataset/val.csv", help="Path to save validation CSV file.")
 
21
 
22
  if __name__ == "__main__":
23
  parser = argparse.ArgumentParser(description="Split dataset into train and validation sets.")
24
+ parser.add_argument("--data_dir", type=str, default="data/diabetic-retinopathy-dataset/resized/train", help="Directory containing images.")
25
  parser.add_argument("--csv_path", type=str, default="data/diabetic-retinopathy-dataset/trainLabels.csv", help="Path to CSV file containing image labels.")
26
  parser.add_argument("--train_csv_path", type=str, default="data/diabetic-retinopathy-dataset/train.csv", help="Path to save train CSV file.")
27
  parser.add_argument("--val_csv_path", type=str, default="data/diabetic-retinopathy-dataset/val.csv", help="Path to save validation CSV file.")