AttributeError: 'NoneType' object has no attribute '__array_interface__'
生活随笔
收集整理的這篇文章主要介紹了
AttributeError: 'NoneType' object has no attribute '__array_interface__'
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
這個問題出現在dataloader里面.
問題解決:
原因是數據沒有讀進來.
檢查下dataloader的類中的讀取數據的代碼,例如:
?img = cv2.imread(img_name)?
讀取失敗的話,會得到None.
?
?
總結
以上是生活随笔為你收集整理的AttributeError: 'NoneType' object has no attribute '__array_interface__'的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 肺癌图片识别相关的资料调研
- 下一篇: 深度学习没有GPU怎么办?