C2w1 assignment in DeepLearning.AI TensorFlow Developer

Need Help with Split_data function.

I am getting “FileNotFoundError: [Errno 2] No such file or directory: ‘3783.jpg’” error.
please help me.

[snippet deleted by mentor]

there are many mistakes with your implementation of the function split_data. Here are a few hints to get you started:

  1. Check for the full image path when using getsize function and not just the image name.
  2. Call os.listdir outside a for loop.
  3. Files should be split into training and validation sets after filtering out empty files.