File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -1088,25 +1088,9 @@ def __call__(
10881088
10891089 # 3. Encode input prompt
10901090 (cross_attention_kwargs .get ("scale" , None ) if cross_attention_kwargs is not None else None )
1091- # (
1092- # prompt_embeds,
1093- # negative_prompt_embeds,
1094- # pooled_prompt_embeds,
1095- # negative_pooled_prompt_embeds,
1096- # ) = self.encode_prompt(
1097- # prompt=prompt,
1098- # prompt_2=prompt_2,
1099- # device=device,
1100- # num_images_per_prompt=num_images_per_prompt,
1101- # do_classifier_free_guidance=do_classifier_free_guidance,
1102- # negative_prompt=negative_prompt,
1103- # negative_prompt_2=negative_prompt_2,
1104- # prompt_embeds=prompt_embeds,
1105- # negative_prompt_embeds=negative_prompt_embeds,
1106- # pooled_prompt_embeds=pooled_prompt_embeds,
1107- # negative_pooled_prompt_embeds=negative_pooled_prompt_embeds,
1108- # lora_scale=text_encoder_lora_scale,
1109- # )
1091+
1092+ negative_prompt = negative_prompt if negative_prompt is not None else ""
1093+
11101094 (
11111095 prompt_embeds ,
11121096 negative_prompt_embeds ,
You can’t perform that action at this time.
0 commit comments