MCPcopy Create free account
hub / github.com/ImprintLab/Medical-SAM2 / forward

Method forward

sam2_train/modeling/memory_encoder.py:57–58  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

55 self.encoder.append(nn.Conv2d(mask_out_chans, embed_dim, kernel_size=1))
56
57 def forward(self, x):
58 return self.encoder(x)
59
60
61# Lightly adapted from ConvNext (https://github.com/facebookresearch/ConvNeXt)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected