@@ -142,31 +142,37 @@ def intermediate_inputs(self) -> List[str]:
142142 "prompt_embeds" ,
143143 required = True ,
144144 type_hint = torch .Tensor ,
145+ kwargs_type = "guider_input_fields" ,
145146 description = "Pre-generated text embeddings. Can be generated from text_encoder step." ,
146147 ),
147148 InputParam (
148149 "negative_prompt_embeds" ,
149150 type_hint = torch .Tensor ,
151+ kwargs_type = "guider_input_fields" ,
150152 description = "Pre-generated negative text embeddings. Can be generated from text_encoder step." ,
151153 ),
152154 InputParam (
153155 "pooled_prompt_embeds" ,
154156 required = True ,
155157 type_hint = torch .Tensor ,
158+ kwargs_type = "guider_input_fields" ,
156159 description = "Pre-generated pooled text embeddings. Can be generated from text_encoder step." ,
157160 ),
158161 InputParam (
159162 "negative_pooled_prompt_embeds" ,
163+ kwargs_type = "guider_input_fields" ,
160164 description = "Pre-generated negative pooled text embeddings. Can be generated from text_encoder step." ,
161165 ),
162166 InputParam (
163167 "ip_adapter_embeds" ,
164168 type_hint = List [torch .Tensor ],
169+ kwargs_type = "guider_input_fields" ,
165170 description = "Pre-generated image embeddings for IP-Adapter. Can be generated from ip_adapter step." ,
166171 ),
167172 InputParam (
168173 "negative_ip_adapter_embeds" ,
169174 type_hint = List [torch .Tensor ],
175+ kwargs_type = "guider_input_fields" ,
170176 description = "Pre-generated negative image embeddings for IP-Adapter. Can be generated from ip_adapter step." ,
171177 ),
172178 ]
@@ -184,42 +190,6 @@ def intermediate_outputs(self) -> List[str]:
184190 type_hint = torch .dtype ,
185191 description = "Data type of model tensor inputs (determined by `prompt_embeds`)" ,
186192 ),
187- OutputParam (
188- "prompt_embeds" ,
189- type_hint = torch .Tensor ,
190- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
191- description = "text embeddings used to guide the image generation" ,
192- ),
193- OutputParam (
194- "negative_prompt_embeds" ,
195- type_hint = torch .Tensor ,
196- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
197- description = "negative text embeddings used to guide the image generation" ,
198- ),
199- OutputParam (
200- "pooled_prompt_embeds" ,
201- type_hint = torch .Tensor ,
202- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
203- description = "pooled text embeddings used to guide the image generation" ,
204- ),
205- OutputParam (
206- "negative_pooled_prompt_embeds" ,
207- type_hint = torch .Tensor ,
208- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
209- description = "negative pooled text embeddings used to guide the image generation" ,
210- ),
211- OutputParam (
212- "ip_adapter_embeds" ,
213- type_hint = List [torch .Tensor ],
214- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
215- description = "image embeddings for IP-Adapter" ,
216- ),
217- OutputParam (
218- "negative_ip_adapter_embeds" ,
219- type_hint = List [torch .Tensor ],
220- kwargs_type = "guider_input_fields" , # already in intermedites state but declare here again for guider_input_fields
221- description = "negative image embeddings for IP-Adapter" ,
222- ),
223193 ]
224194
225195 def check_inputs (self , components , block_state ):
0 commit comments