Views
No views yet
W, A, S, D, Space, LShift, LCtrlpip install git+https://github.com/overworld/owl-idm-3.git1from owl_idms import InferencePipeline
2import torch
3
4pipeline = InferencePipeline.from_pretrained(
5 "Overworld/owl-idm-4",
6 device="cuda"
7)
8
9# video: [batch, frames, channels, height, width] in range [-1, 1]
10video = torch.randn(1, 256, 3, 128, 128)
11
12button_preds, mouse_preds = pipeline(video)
13# button_preds: [1, 256, 7] bool — order: `W`, `A`, `S`, `D`, `Space`, `LShift`, `LCtrl`
14# mouse_preds: [1, 256, 2] float — (dx, dy) in pixels
15
16# Check which buttons are pressed at frame 100
17for label, pressed in zip(pipeline.button_labels, button_preds[0, 100]):
18 if pressed:
19 print(f"{label} pressed")config.yml: Full training configurationmodel.pt: EMA model weights (state_dict, ready for load_state_dict)