MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / downscale_factor

Method downscale_factor

diffusers/src/diffusers/models/adapter.py:281–285  ·  view source on GitHub ↗

The downscale factor applied in the T2I-Adapter's initial pixel unshuffle operation. If an input image's dimensions are not evenly divisible by the downscale_factor then an exception will be raised.

(self)

Source from the content-addressed store, hash-verified

279
280 @property
281 def downscale_factor(self):
282 """The downscale factor applied in the T2I-Adapter's initial pixel unshuffle operation. If an input image's dimensions are
283 not evenly divisible by the downscale_factor then an exception will be raised.
284 """
285 return self.adapter.unshuffle.downscale_factor
286
287
288# full adapter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected