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

Method forward

diffusers/src/diffusers/models/adapter.py:374–388  ·  view source on GitHub ↗

r""" This method takes the tensor x as input and processes it through FullAdapterXL model. It consists of operations including unshuffling pixels, applying convolution layer and appending each block into list of feature tensors.

(self, x: torch.Tensor)

Source from the content-addressed store, hash-verified

372 self.total_downscale_factor = downscale_factor * 2
373
374 def forward(self, x: torch.Tensor) -> List[torch.Tensor]:
375 r"""
376 This method takes the tensor x as input and processes it through FullAdapterXL model. It consists of operations
377 including unshuffling pixels, applying convolution layer and appending each block into list of feature tensors.
378 """
379 x = self.unshuffle(x)
380 x = self.conv_in(x)
381
382 features = []
383
384 for block in self.body:
385 x = block(x)
386 features.append(x)
387
388 return features
389
390
391class AdapterBlock(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected