Image Feature Extraction
Transformers
Safetensors
dinov2
Inference Endpoints
fepegar commited on
Commit
2e22528
1 Parent(s): b3eaf04

Fix latents shape in snippet output

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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, 16, 16])
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