Hey mate, thanks for picking up my thread,
I am full filled with the course material, but thought the course lagged up little bit on not considering the custom dataset as their inputs, because most of the use custom dataset images for real world scenarios,
So I have a doubt, how can i convert my custom images dataset in to the prefetch dataset
Hi there, and I hope this helps with what you are doing. Here are two ways I can think of;
First of you can read your images using tf.keras.preprocessing.image_dataeset_from_directory since your images are already nicely placed in their respective label directories. Then using a mapping funtion you can apply a prefetch or interleave or whatever data optimization technique you have in mind.
Or two, you could convert your dataset into a tf.data.Dataset format and again using a mapping function apply a prefetch or any other optimization technique you desire.
In your case option one should be easier to do. Here is a link that should help guide you.
Could you please provide the code for it because when I tried mapping and the feeding it to the model it was showing error,
Please help me,
May God bless you,
Thanks,
Rohit
Hi @Rohit_Kumar did you follow the link I provided, it explains everything including sample codes on how to do that. I suggest you go through the link step by step. Best of luck
Thanks mate, I solved it… But stummbled upon another error
I converted the the images dataset to the prefetch dataset and also got the same prefetch data as in the horses or humans assignment
But when I trained the model it was showing some shape and ranks error
Please help me with the model If any mistake made by me please correct my problems
Thanks in advance
Here is the colab link objc_loc_personnel.ipynb (8.4 KB)
Please look into this,
This will be a great help of you @Atia