MCPcopy Create free account
hub / github.com/CompVis/zigma / transform

Method transform

utils/torchmetric_fdd.py:74–76  ·  view source on GitHub ↗

Converts a PIL Image to an input for the model

(self, x)

Source from the content-addressed store, hash-verified

72
73 @abstractmethod
74 def transform(self, x):
75 """Converts a PIL Image to an input for the model"""
76 pass
77
78 def forward(self, *args, **kwargs):
79 return self.model(*args, **kwargs)

Callers 2

updateMethod · 0.45
__getitem__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected