-
Hi Sebastian, the only thing I can think of in getitem after you normalize the image is to resize it. Not near my desk so I haven’t tried it. Am I thinking correctly? How will I know if that’s the missing code and why is the resize argument 32? Sorry if it’s a dumb question 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
Thanks for asking, I am happy to chat about this, so no need to apologize :). Regarding the resize argument, that's not necessary. You mean in https://github.com/Lightning-AI/dl-fundamentals/blob/main/unit04-multilayer-nets/exercises/2_fashion-mnist/exercise_2_fashion-mnist.ipynb right? So here you don't need to resize. The images are 28x28 images. You probably meant the following line?
Here, we are casting the images to a float array. By default, image data is an integer between 0 and 255. We usually need float variables for computing the gradients etc. |
Beta Was this translation helpful? Give feedback.
-
Aaargh I don’t know enough python to know what %kind means in the os.path.join. Also is there only one argument passed into get item? And only one line of code in the… placeholders? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the way forward. I was kinda lost 👋 |
Beta Was this translation helpful? Give feedback.
Thanks for the way forward. I was kinda lost 👋