f"{self.__class__} has the config param `addition_embed_type` set to 'image_hint' which requires the keyword arguments `image_embeds` and `hint` to be passed in `added_cond_kwargs`"
f"{self.__class__} has the config param `addition_embed_type` set to 'image_hint' which requires the keyword arguments `image_embeds` and `hint` to be passed in `added_cond_kwargs`"
...
@@ -1009,7 +1010,7 @@ class UNet2DConditionModel(
...
@@ -1009,7 +1010,7 @@ class UNet2DConditionModel(
# Kandinsky 2.1 - style
# Kandinsky 2.1 - style
if"image_embeds"notinadded_cond_kwargs:
if"image_embeds"notinadded_cond_kwargs:
raiseValueError(
raiseValueError(
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'text_image_proj' which requires the keyword argument `image_embeds` to be passed in `added_conditions`"
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'text_image_proj' which requires the keyword argument `image_embeds` to be passed in `added_cond_kwargs`"
@@ -1018,14 +1019,14 @@ class UNet2DConditionModel(
...
@@ -1018,14 +1019,14 @@ class UNet2DConditionModel(
# Kandinsky 2.2 - style
# Kandinsky 2.2 - style
if"image_embeds"notinadded_cond_kwargs:
if"image_embeds"notinadded_cond_kwargs:
raiseValueError(
raiseValueError(
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'image_proj' which requires the keyword argument `image_embeds` to be passed in `added_conditions`"
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'image_proj' which requires the keyword argument `image_embeds` to be passed in `added_cond_kwargs`"
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'ip_image_proj' which requires the keyword argument `image_embeds` to be passed in `added_conditions`"
f"{self.__class__} has the config param `encoder_hid_dim_type` set to 'ip_image_proj' which requires the keyword argument `image_embeds` to be passed in `added_cond_kwargs`"