Skip to content

Commit e469ae2

Browse files
committed
readme
1 parent fd3295a commit e469ae2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,22 @@ assert image_feats.shape == quantized.shape
318318
assert (quantized == quantizer.indices_to_codes(indices)).all()
319319
```
320320

321+
You can also pass in video features as `(batch, feat, time, height, width)` or sequences as `(batch, seq, feat)`
322+
323+
```python
324+
325+
seq = torch.randn(1, 32, 16)
326+
quantized, *_ = quantizer(seq)
327+
328+
assert seq.shape == quantized.shape
329+
330+
video_feats = torch.randn(1, 16, 10, 32, 32)
331+
quantized, *_ = quantizer(video_feats)
332+
333+
assert video_feats.shape == quantized.shape
334+
335+
```
336+
321337
## Citations
322338

323339
```bibtex

0 commit comments

Comments
 (0)