Srikumar26
commited on
Commit
•
c540376
1
Parent(s):
e28f8ca
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
---
|
4 |
+
Model: ViTAE-RVSA (https://arxiv.org/abs/2208.03987)
|
5 |
+
|
6 |
+
Variant: ViTAE-b_pretrain
|
7 |
+
|
8 |
+
Example Usage:
|
9 |
+
```python
|
10 |
+
from huggingface_hub import hf_hub_download
|
11 |
+
import torch
|
12 |
+
|
13 |
+
hf_hub_download("MVRL/rvsa_vitae_b", "model.py", local_dir=".")
|
14 |
+
|
15 |
+
from model import MaskedAutoencoderViTAE
|
16 |
+
|
17 |
+
model = MaskedAutoencoderViTAE.from_pretrained("MVRL/rvsa_vitae_b")
|
18 |
+
|
19 |
+
print(model.forward_encoder(torch.randn(1, 3, 224, 224), mask_ratio=0.0)[0].shape)
|
20 |
+
```
|