MCPcopy Create free account
hub / github.com/PolyU-ChenLab/UniPixel / __call__

Method __call__

sam2/utils/transforms.py:35–37  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

33 ))
34
35 def __call__(self, x):
36 x = self.to_tensor(x)
37 return self.transforms(x)
38
39 def forward_batch(self, img_list):
40 img_batch = [self.transforms(self.to_tensor(img)) for img in img_list]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected