| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| |
|
| | from ..utils import deprecate |
| | from .unets.unet_2d import UNet2DModel, UNet2DOutput |
| |
|
| |
|
| | class UNet2DOutput(UNet2DOutput): |
| | deprecation_message = "Importing `UNet2DOutput` from `diffusers.models.unet_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d import UNet2DOutput`, instead." |
| | deprecate("UNet2DOutput", "0.29", deprecation_message) |
| |
|
| |
|
| | class UNet2DModel(UNet2DModel): |
| | deprecation_message = "Importing `UNet2DModel` from `diffusers.models.unet_2d` is deprecated and this will be removed in a future version. Please use `from diffusers.models.unets.unet_2d import UNet2DModel`, instead." |
| | deprecate("UNet2DModel", "0.29", deprecation_message) |
| |
|