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

Method forward

data/data_utils.py:30–32  ·  view source on GitHub ↗
(self, imgs)

Source from the content-addressed store, hash-verified

28
29class PairRandomResizedCrop(transforms.RandomResizedCrop):
30 def forward(self, imgs):
31 i, j, h, w = self.get_params(imgs[0], self.scale, self.ratio)
32 return [F.resized_crop(img, i, j, h, w, self.size, self.interpolation, antialias=self.antialias) for img in imgs]
33
34
35class PairToTensor(transforms.ToTensor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected