ThomasCdnns commited on
Commit
174c249
·
verified ·
1 Parent(s): 4f9954d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -1
README.md CHANGED
@@ -39,12 +39,16 @@ Images are normalized with mean=[0.5] and std=[0.5]
39
  Input tensor shape: (batch_size, 1, 32, 32)
40
 
41
  ### Preprocessing
42
- pythonCopytransforms.Compose([
 
 
 
43
  transforms.Grayscale(),
44
  transforms.Resize((32, 32)),
45
  transforms.ToTensor(),
46
  transforms.Normalize(mean=[0.5], std=[0.5])
47
  ])
 
48
 
49
  ## Training Procedure
50
 
 
39
  Input tensor shape: (batch_size, 1, 32, 32)
40
 
41
  ### Preprocessing
42
+ ```python
43
+ from torchvision import transforms
44
+
45
+ transforms.Compose([
46
  transforms.Grayscale(),
47
  transforms.Resize((32, 32)),
48
  transforms.ToTensor(),
49
  transforms.Normalize(mean=[0.5], std=[0.5])
50
  ])
51
+ ```
52
 
53
  ## Training Procedure
54