MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / UNetMidBlock2D

Class UNetMidBlock2D

src/diffusers/models/unet_2d_blocks.py:264–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264class UNetMidBlock2D(UNetMidBlock2D):
265 deprecation_message = "Importing `UNetMidBlock2D` from `diffusers.models.unet_2d_blocks` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d_blocks import UNetMidBlock2D`, instead."
266 deprecate("UNetMidBlock2D", "0.29", deprecation_message)
267
268
269class UNetMidBlock2DCrossAttn(UNetMidBlock2DCrossAttn):

Callers 3

__init__Method · 0.70
get_mid_blockFunction · 0.70

Calls 1

deprecateFunction · 0.85

Tested by

no test coverage detected