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

Method __init__

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

Source from the content-addressed store, hash-verified

56class ImageFeatureExtractor(torch.nn.Module):
57 """ Image feature wrapper """
58 def __init__(self, model):
59 super(ImageFeatureExtractor, self).__init__()
60 self.model = model
61
62 def __call__(self, x):
63 return self.model.get_image_features(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected