No module named 'torchvision'

The module cannot be found.

ModuleNotFoundError Traceback (most recent call last)
----> 1 from torchvision import transforms

ModuleNotFoundError: No module named ‘torchvision’

I just ran that assignment and it worked for me. Are you running this on the course website or on your local computer?

1 Like

If you are running this on the lab (course website), please re-run all cells from the beginning

1 Like

Thank you Paul and Nydia - you got me past the initial troubles.
Greatly appreciated.

I think I jumped into this course too early, and am struggling with the values to enter for the batch. I am not sure after rewatching all the videos if this is “basic info” I should have already or where to get the information on the specific numbers to be entering.

The assignments generally have pretty complete instructions about what you need to do, so it’s always a good idea to read the instructions carefully and with attention. There will be some “boilerplate”, but that’s usually easy to distinguish. Of course a lot of what they are explaining about what you need to build in the assignment is based on concepts introduced in the lectures, so it’s important to watch the lectures carefully as well. One advantage of “online learning” is that it’s easy to hit pause and watch a segment again when something doesn’t make sense the first time through.

The other point here is that you need a solid command of python as a prerequisite and one of the big things we are learning here is how to use the PyTorch platform, which is a quite complex API. Please don’t skip the “Intro to PyTorch” assignment that’s the first one in Week 1.

If you get stuck on something, that’s what the forums are for. The best way to get help is to ask a specific question.

Actually that’s another question. The GANs specialization is not an “intro” course, meaning it would be a mistake to take this as your first exposure to any kind of Machine Learning. Have you taken either the MLS Specialization or at least DLS Course 1, 2 and 4 first? If you are starting from a clean slate, the normal recommended sequence would be MLS first, then DLS and then branch out to things like GANs. But DLS is pretty “deep” (pun intended): there is a lot of material there. If you get all the way through DLS C4 (ConvNets) that’s enough background to get you solid footing here in GANs. DLS C5 covers Sequence Models, which are essential in Natural Language Processing these days, but not that similar to GANs.

Thank you Paulinpaloalto. I appreciate this heart-felt guidance and the timing of it!
I am putting GAN on pause, and will do as you advised to take DLS 1,2 and 4 first.

Greatly appreciated :heartbeat: