MCPcopy Create free account
hub / github.com/HealthX-Lab/MedCLIP-SAMv2 / __init__

Method __init__

saliency_maps/scripts/utils.py:67–69  ·  view source on GitHub ↗
(self, model)

Source from the content-addressed store, hash-verified

65class TextFeatureExtractor(torch.nn.Module):
66 """ Text feature wrapper """
67 def __init__(self, model):
68 super(TextFeatureExtractor, self).__init__()
69 self.model = model
70
71 def __call__(self, x):
72 return self.model.get_text_features(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected