Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the message 'Cleanup called...' repeatedly while training a model on kaggle. How can we get rid of this? (CNN model using Keras)

model.compile(optimizer='adam',loss='categorical_crossentropy', metrics=['accuracy'])

history = model.fit(train_data,epochs = 1,validation_data = test_data,verbose=1, callbacks =[earlystopping, csv_logger])

9/87606 [..............................] - ETA: 20:44 - loss: 0.2311 - accuracy: 0.8889 

Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
Cleanup called...
like image 716
Rishabh Sharma Avatar asked Nov 15 '25 17:11

Rishabh Sharma


1 Answers

I found this on Kaggle and it has worked for me. Just paste the code below and it should hopefully work for you too.

from IPython.display import clear_output

!pip install -q tensorflow==2.4.1

clear_output()
like image 84
below_average Avatar answered Nov 18 '25 21:11

below_average



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!