Skip to content

Runtime error expected 10 channels but got 3 channels isntead #892

Answered by LuluW8071
JustANormalUse asked this question in Q&A
Discussion options

You must be logged in to vote
  • There are library import missing in your notebook
from pathlib import Path
from torchvision import transforms
  • Rename random_image_paths to random_image_path

On section 6

Paste this

train_transform = transforms.Compose([
                                    transforms.Resize(size=(224, 224)),
                                    transforms.TrivialAugmentWide(num_magnitude_bins=31),
                                    transforms.ToTensor()
])

test_transform = transforms.Compose([
                                      transforms.Resize(size=(224, 224)),
                                      transforms.ToTensor()
])

On section 7.1

I made this to take better transform.Compose though if you …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JustANormalUse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants