XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server “localhost:13.0“
生活随笔
收集整理的這篇文章主要介紹了
XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server “localhost:13.0“
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
參考內容:https://www.45ma.com/post-37073.html
該錯誤是在訓練yolov4時出現的,目前由以上參考內容可知是與matplotlib相關錯誤,是由于matplotlib正在使用的后端引起的。
已知解決方法:
1、讓matplotlib不顯示繪圖。在導入matplotlib庫后,且在matplotlib.pyplot庫被導入前加“matplotlib.use(‘agg’)”語句。
import matplotlib matplotlib.use('agg') import matplotlib.pyplot as plt # matplotlib.use('agg')必須在本句執行前運行2、已知和Xmanager的傳輸有關,電腦常開不關機可實現正常訓練。(明明運行時用了nohup進行進程的保存還是沒有用)
總結
以上是生活随笔為你收集整理的XIO: fatal IO error 25 (Inappropriate ioctl for device) on X server “localhost:13.0“的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: t检验(t test)
- 下一篇: 科普:卡他妈滤波_拔剑-浆糊的传说_新浪