Jit*_*ddi 3 python tensorflow object-detection-api google-colaboratory
我正在使用 Google Colab 训练对象检测模型,使用 tensorflow 对象检测 api。当我运行单元格时train.py,它会不断打印诊断输出。大约 30 分钟后,浏览器崩溃,因为在单元格的输出中打印了大量的行。
是否有任何脚本可以用来定期(例如每 30 分钟)清除输出而不是手动按clear output button?
您可以使用 google.colab.output.clear()
from google.colab import output
for i in range(100):
print(i)
# do something
if i%10 == 0:
output.clear()
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
6016 次 |
| 最近记录: |