1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

debugging

This commit is contained in:
sayakpaul
2023-08-23 15:53:35 +05:30
parent 8ba5c7600e
commit 5eead70b93

View File

@@ -966,6 +966,7 @@ class UNet2DConditionModel(ModelMixin, ConfigMixin, UNet2DConditionLoadersMixin)
encoder_attention_mask=encoder_attention_mask,
)
# To support T2I-Adapter-XL
print(f"From UNet: {len(down_block_additional_residuals)}")
if is_adapter and len(down_block_additional_residuals) > 0:
sample += down_block_additional_residuals.pop(0)