KBlueLeaf commited on
Commit
dd4e57f
·
verified ·
1 Parent(s): 742c169

Model card: repo id

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -27,7 +27,7 @@ With `transformers` only:
27
  import torch
28
  from transformers import AutoModel
29
 
30
- model = AutoModel.from_pretrained("<this repo>", trust_remote_code=True).cuda().eval()
31
  video = torch.rand(1, 8, 3, 256, 256, device="cuda") * 2 - 1 # [B, T, C, H, W], pixels in [-1, 1]
32
  with torch.no_grad(), torch.autocast("cuda", dtype=torch.float16):
33
  motion = model(video).motion_output # [B, T, 1, 768]
@@ -38,7 +38,7 @@ With the TT-VidT repository:
38
  ```python
39
  from ttvidt.hub import load_model
40
 
41
- model = load_model("<this repo>", device="cuda")
42
  motion = model.encoder(video).motion_output
43
  ```
44
 
 
27
  import torch
28
  from transformers import AutoModel
29
 
30
+ model = AutoModel.from_pretrained("KBlueLeaf/TTVidT", trust_remote_code=True).cuda().eval()
31
  video = torch.rand(1, 8, 3, 256, 256, device="cuda") * 2 - 1 # [B, T, C, H, W], pixels in [-1, 1]
32
  with torch.no_grad(), torch.autocast("cuda", dtype=torch.float16):
33
  motion = model(video).motion_output # [B, T, 1, 768]
 
38
  ```python
39
  from ttvidt.hub import load_model
40
 
41
+ model = load_model("KBlueLeaf/TTVidT", device="cuda")
42
  motion = model.encoder(video).motion_output
43
  ```
44