Getting TypeError: can't pickle _thread.RLock objects
问题 Read a number of similar questions, most of them mentioned that you shouldn't try to serialize an unserializable object. I am not able to understand the issue. I am able to save the model as .h5 file but that doesn't serve the purpose of what I am trying to do. Please Help! def image_generator(train_data_dir, test_data_dir): train_datagen = ImageDataGenerator(rescale=1/255, rotation_range = 30, zoom_range = 0.2, width_shift_range=0.1, height_shift_range=0.1, validation_split = 0.15) test