The randomizer doesn't always fulfill the expected output C2W2 Assignment

However, this was the reply from a mentor there:

“Have you checked the proposed code in the labs to complete the train_val_generators(TRAINING_DIR, VALIDATION_DIR) function? Does your proposal pass the grader?”

The proposed code in the labs doesn’t need to split the dataset since its already split into train_val directories. The generator only preprocesses the images, it doesn’t decide which images goes to train or val directory. That is decided using a randomizer (As asked in the assignment instructions)

Hey @Johayra_Prithula,
Welcome to the community. Can you please mention the Week and the Assignment number to which you are referring to?

Regards,
Elemento

It’s Course 2 Week 2 Assignment

@Johayra_Prithula This lab belongs to TF1 course 2. Does this post help?

1 Like

Yess it does! altho without removing the files the randomizer problem still prevails. But the grader doesn’t seem to take that into account so ig its okay either way

ImageDataGenerator is smart enough to consider only image files. thumbs.db won’t get through. Here’s the source

To be sure that these thumbs files don’t get mixed, you can filter them out along with 0 length files without printing thumbs db filenames. I’ll file a ticket to distribute a better zip file. Thanks for pointing out.

I have been trying to assign a correct directory path for training and test datasets, but the assignment env tells me there is no such directory or file although I have initialized one before. Here is my error:

StackOverflow does not help. Has anyone encountered this error? Thank you for the help