In section "Add code to transform and select random images" executing it found some error

Iliana Tzima 0 Reputation points
2024-05-08T09:44:55.24+00:00

This code in jupyter cell

images, labels = dataiter.next()

returns error "'_SingleProcessDataLoaderIter' object has no attribute 'next'"

So found out that the syntax is next(dataiter) and then the even the next cell run successfully

Visual Studio Training
Visual Studio Training
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Training: Instruction to develop new skills.
25 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pradeep M 4,560 Reputation points Microsoft Vendor
    2024-07-30T06:02:28.7566667+00:00

    Hi Iliana Tzima

    Thank you for reaching out to Microsoft Q & A forum.    

    Where am I seeing this?   

    Learning Path: Classify space rocks by using Python and artificial intelligence  

    Module:  Analyze images of rocks by using artificial intelligence  

    Unit 6: Exercise - Display photos in Jupyter Notebook 

    Thank you for your understanding.   

    Following our communication with the content author, they've assured us that the Learn paths will be revised and updated in the upcoming major update, which is imminent.   

    We believe this information is helpful to you! If so, please acknowledge it by clicking "Accept Answer" and "Upvote" on the post.  

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.