Fix latents shape in snippet output
Browse files
README.md
CHANGED
|
@@ -118,7 +118,7 @@ We will use [`einops`](https://einops.rocks/) (install with `pip install einops`
|
|
| 118 |
>>> flat_patch_embeddings = outputs.last_hidden_state[:, 1:] # first token is CLS
|
| 119 |
>>> reshaped_patch_embeddings = reshape_patch_embeddings(flat_patch_embeddings)
|
| 120 |
>>> reshaped_patch_embeddings.shape # (batch_size, num_channels, height, width)
|
| 121 |
-
torch.Size([1, 768,
|
| 122 |
```
|
| 123 |
|
| 124 |
## Training details
|
|
|
|
| 118 |
>>> flat_patch_embeddings = outputs.last_hidden_state[:, 1:] # first token is CLS
|
| 119 |
>>> reshaped_patch_embeddings = reshape_patch_embeddings(flat_patch_embeddings)
|
| 120 |
>>> reshaped_patch_embeddings.shape # (batch_size, num_channels, height, width)
|
| 121 |
+
torch.Size([1, 768, 37, 37])
|
| 122 |
```
|
| 123 |
|
| 124 |
## Training details
|