MCPcopy Create free account
hub / github.com/csuhan/OneLLM / __init__

Method __init__

model/lib/point_utils.py:148–167  ·  view source on GitHub ↗
(self,
                 sample_ratio=0.0625,
                 sample_number=1024,
                 group_size=32,
                 in_channels=6,
                 channels=1024,
                 kernel_size=1,
                 stride=1,
                 normalize_dp=False,
                 relative_xyz=True,
                 )

Source from the content-addressed store, hash-verified

146class PointPatchEmbed(nn.Module):
147
148 def __init__(self,
149 sample_ratio=0.0625,
150 sample_number=1024,
151 group_size=32,
152 in_channels=6,
153 channels=1024,
154 kernel_size=1,
155 stride=1,
156 normalize_dp=False,
157 relative_xyz=True,
158 ):
159 super().__init__()
160 self.sample_ratio = sample_ratio
161 self.sample_number = sample_number
162 self.group_size = group_size
163
164 self.sample_fn = furthest_point_sample
165 self.grouper = KNNGroup(self.group_size, relative_xyz=relative_xyz, normalize_dp=normalize_dp)
166
167 self.conv1 = nn.Conv2d(in_channels, channels, kernel_size=kernel_size, stride=stride)
168
169
170 def forward(self, x):

Callers

nothing calls this directly

Calls 2

KNNGroupClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected