when i load images and store every image in a list and we have like 4gb of images.Does that mean 4gb of ram in my pc will be utilized when i doing this work.
But when we run model.fit(x_train,y_train,batch_size=32)
as batch_size is 32 so every time when i am training my model only 32 images will be considered for updating the weights and those 32 images will get load in my ram
Regarding data loaders
Hey @amankharb, RAM is not decided by the number of images you are feeding to your model at once or in one batch. RAM utilisation is basically that your x_train variable or any other variable holding all the training images at once. So space complexity is decided by the data that each variable holds. So whether your batch size is 32 or 64 or 128…RAM used will depend on the images you have stored or loaded into a single variable !
I hope this clears your doubt !
Happy Learning
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.