简体   繁体   English

在 kaggle 上训练 model 时反复收到消息“清理调用...”。 我们怎样才能摆脱这个? (CNN model 使用 Keras)

[英]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...

I found this on Kaggle and it has worked for me.我在 Kaggle 上找到了这个,它对我有用。 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()

This is Actually a debugging message which is being displayed in Tensorflow.这实际上是在 TensorFlow 中显示的调试消息。 Try below code to disable it.尝试下面的代码来禁用它。

import tensorflow as tf

tf.get_logger().setLevel('INFO')*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM