fix circular imports

This commit is contained in:
Pierre Chapuis 2023-12-11 14:56:47 +01:00
parent c8d5faff9b
commit 42a0fc4aa0
4 changed files with 4 additions and 4 deletions

View file

@ -12,8 +12,8 @@ from refiners.fluxion.layers import (
SetContext,
UseContext,
)
from refiners.foundationals.latent_diffusion import SD1UNet
from refiners.foundationals.latent_diffusion.cross_attention import CrossAttentionBlock
from refiners.foundationals.latent_diffusion.stable_diffusion_1.unet import SD1UNet
class SaveLayerNormAdapter(Chain, Adapter[SelfAttention]):

View file

@ -3,7 +3,7 @@ from torch import Tensor
from refiners.foundationals.clip.image_encoder import CLIPImageEncoderH
from refiners.foundationals.latent_diffusion.cross_attention import CrossAttentionBlock2d
from refiners.foundationals.latent_diffusion.image_prompt import ImageProjection, IPAdapter, PerceiverResampler
from refiners.foundationals.latent_diffusion.stable_diffusion_1 import SD1UNet
from refiners.foundationals.latent_diffusion.stable_diffusion_1.unet import SD1UNet
class SD1IPAdapter(IPAdapter[SD1UNet]):

View file

@ -3,7 +3,7 @@ from torch import Tensor
from refiners.foundationals.clip.image_encoder import CLIPImageEncoderH
from refiners.foundationals.latent_diffusion.cross_attention import CrossAttentionBlock2d
from refiners.foundationals.latent_diffusion.image_prompt import ImageProjection, IPAdapter, PerceiverResampler
from refiners.foundationals.latent_diffusion.stable_diffusion_xl import SDXLUNet
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.unet import SDXLUNet
class SDXLIPAdapter(IPAdapter[SDXLUNet]):

View file

@ -2,7 +2,7 @@ from torch import Tensor
import refiners.fluxion.layers as fl
from refiners.foundationals.latent_diffusion.stable_diffusion_1.unet import ResidualAccumulator
from refiners.foundationals.latent_diffusion.stable_diffusion_xl import SDXLUNet
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.unet import SDXLUNet
from refiners.foundationals.latent_diffusion.t2i_adapter import ConditionEncoderXL, T2IAdapter, T2IFeatures