MHanzl commited on
Commit
d50701c
1 Parent(s): b2e9b97

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -31,7 +31,7 @@ model = timm.create_model("hf-hub:BVRA/legacy_seresnext101_32x4d.in1k_ft_df20m_3
31
  model = model.eval()
32
  train_transforms = T.Compose([T.Resize((384, 384)),
33
  T.ToTensor(),
34
- T.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])])
35
  img = Image.open(PATH_TO_YOUR_IMAGE)
36
  output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
37
  ```
 
31
  model = model.eval()
32
  train_transforms = T.Compose([T.Resize((384, 384)),
33
  T.ToTensor(),
34
+ T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])])
35
  img = Image.open(PATH_TO_YOUR_IMAGE)
36
  output = model(train_transforms(img).unsqueeze(0)) # output is (batch_size, num_features) shaped tensor
37
  ```