Added gc.collect() in the main function

This commit is contained in:
Jordon Brooks 2023-08-17 23:40:56 +01:00
parent 7787d0584e
commit d3f1ac1e0d

View file

@ -164,6 +164,8 @@ def main():
steps_per_epoch_train = total_frames_train // BATCH_SIZE
steps_per_epoch_validation = total_frames_validation // BATCH_SIZE
gc.collect()
# Train the model
LOGGER.info("Starting model training.")
model.fit(