Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVlabs/SegFormer
/ __init__
Method
__init__
tests/test_models/test_segmentor.py:64–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
62
class
ExampleDecodeHead(BaseDecodeHead):
63
64
def
__init__(self):
65
super(ExampleDecodeHead, self).__init__(3, 3, num_classes=19)
66
67
def
forward(self, inputs):
68
return
self.cls_seg(inputs[0])
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected