C2W1 Can't Create Directories

Edit: Figured it out, wasn’t making use of

For C2W1 where you’re assigned the task of creating the directories and splitting data, for some reason I’m stuck at the first hurdle trying to just create the subdirectories!

train_dir = os.path.join(root_dir, 'train')
  validation_dir = os.path.join(root_dir, 'validation')

  train_cats_dir = os.path.join(train_dir, 'cats')
  train_dogs_dir = os.path.join(train_dir, 'dogs')

  validation_cats_dir = os.path.join(validation_dir, 'cats')
  validation_dogs_dir = os.path.join(validation_dir, 'dogs')

Could someone please explain why this doesn’t work? I’m also not sure how to split the data either and what code would work for that… Struggling with this one.

You posted this in DLS Course 4 Convolutional Neural Networks but I think your query belongs to TF1 Course 2 Convolutional Neural Networks in TensorFlow. Please move it to the relevant course category as instructed here and our mentors will be happy to assist you.

Apologies, I’ve moved that now