How many images can be trained in Google Colab?
I am using the ResNet50 pretrained model to train my images using TensorFlow. I have 70k images and upgraded to Google Colab Pro, but still I am facing a memory error. So how many images I can train in Google Colab? And how much RAM is needed for 70k images?
This is how I labeled and loaded images from the drive.
labels = []
imagePaths_generater = paths.list_images(Config.DATASET_PATH)
imagePaths = []
for item in imagePaths_generater:
imagePaths.append(item)
for imagePath in imagePaths:
label = imagePath.split(os.path.sep)[-2].split(_)
#print(label)
image = load_img(imagePath, target_size=(224, 224))
image = img_to_array(image)
image = preprocess_input(image)
data.append(image)
labels.append(label)
data = np.array(data, dtype=float)
labels = np.array(labels)```
Topic google-cloud colab keras tensorflow predictive-modeling
Category Data Science