dennis-rall commited on
Commit
38882ab
1 Parent(s): 39cc32e

Use batch size consistently

Browse files

I found it a bit confusing that the output is described in one place as (batch_size, num_features) and in another place as (1, num_features). I suggest sticking with one method and think that (batch_size,...) gives more information

Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -74,10 +74,10 @@ output = model(transforms(img).unsqueeze(0)) # output is (batch_size, num_featu
74
  # or equivalently (without needing to set num_classes=0)
75
 
76
  output = model.forward_features(transforms(img).unsqueeze(0))
77
- # output is unpooled, a (1, 257, 1408) shaped tensor
78
 
79
  output = model.forward_head(output, pre_logits=True)
80
- # output is a (1, num_features) shaped tensor
81
  ```
82
 
83
  ## Model Comparison
 
74
  # or equivalently (without needing to set num_classes=0)
75
 
76
  output = model.forward_features(transforms(img).unsqueeze(0))
77
+ # output is unpooled, a (batch_size, 257, 1408) shaped tensor
78
 
79
  output = model.forward_head(output, pre_logits=True)
80
+ # output is a (batch_size, num_features) shaped tensor
81
  ```
82
 
83
  ## Model Comparison