machine-perception-robotics-group / MPRGDeepLearningLectureNotebook

354 stars 34 forks source link

AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next' #9

Open Taiga10969 opened 1 year ago

Taiga10969 commented 1 year ago

11_cnn_pytorch/02_cam.ipynb CNNの可視化 (Class Activation Mapping; CAM)について Google Colaboratoryで実行したところ,以下のエラーが出ました.

AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'

images, labels = dataiter.next()を以下に変更することで解決しました. images, labels = next(dataiter)