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

Method forward

diffusers/src/diffusers/models/adapter.py:267–274  ·  view source on GitHub ↗

r""" This function processes the input tensor `x` through the adapter model and returns a list of feature tensors, each representing information extracted at a different scale from the input. The length of the list is determined by the number of downsample blocks in the Adapt

(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

265 )
266
267 def forward(self, x: torch.Tensor) -> List[torch.Tensor]:
268 r"""
269 This function processes the input tensor `x` through the adapter model and returns a list of feature tensors,
270 each representing information extracted at a different scale from the input. The length of the list is
271 determined by the number of downsample blocks in the Adapter, as specified by the `channels` and
272 `num_res_blocks` parameters during initialization.
273 """
274 return self.adapter(x)
275
276 @property
277 def total_downscale_factor(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected