Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VisionXLab/OF-Diff
/ Slice
Class
Slice
ldm/modules/midas/midas/vit.py:9–15 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
8
9
class
Slice(nn.Module):
10
def
__init__(self, start_index=1):
11
super(Slice, self).__init__()
12
self.start_index = start_index
13
14
def
forward(self, x):
15
return
x[:, self.start_index :]
16
17
18
class
AddReadout(nn.Module):
Callers
1
get_readout_oper
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected