Added gc.collect() in the main function
This commit is contained in:
parent
7787d0584e
commit
d3f1ac1e0d
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Reference in a new issue