AlekseyCalvin commited on
Commit
609045b
1 Parent(s): a2a9ffc

Update custom_pipeline.py

Browse files
Files changed (1) hide show
  1. custom_pipeline.py +3 -5
custom_pipeline.py CHANGED
@@ -91,6 +91,7 @@ class FluxWithCFGPipeline(FluxPipeline):
91
  self.check_inputs(
92
  prompt,
93
  prompt_2,
 
94
  height,
95
  width,
96
  prompt_embeds=prompt_embeds,
@@ -118,11 +119,7 @@ class FluxWithCFGPipeline(FluxPipeline):
118
  max_sequence_length=max_sequence_length,
119
  lora_scale=lora_scale,
120
  )
121
- (
122
- negative_prompt_embeds,
123
- negative_pooled_prompt_embeds,
124
- negative_text_ids,
125
- ) = self.encode_prompt(
126
  prompt=negative_prompt,
127
  prompt_2=negative_prompt_2,
128
  prompt_embeds=negative_prompt_embeds,
@@ -141,6 +138,7 @@ class FluxWithCFGPipeline(FluxPipeline):
141
  height,
142
  width,
143
  prompt_embeds.dtype,
 
144
  device,
145
  generator,
146
  latents,
 
91
  self.check_inputs(
92
  prompt,
93
  prompt_2,
94
+ negative_prompt,
95
  height,
96
  width,
97
  prompt_embeds=prompt_embeds,
 
119
  max_sequence_length=max_sequence_length,
120
  lora_scale=lora_scale,
121
  )
122
+ negative_prompt_embeds, negative_pooled_prompt_embeds, negative_text_ids = self.encode_prompt(
 
 
 
 
123
  prompt=negative_prompt,
124
  prompt_2=negative_prompt_2,
125
  prompt_embeds=negative_prompt_embeds,
 
138
  height,
139
  width,
140
  prompt_embeds.dtype,
141
+ negative_prompt_embeds.dtype,
142
  device,
143
  generator,
144
  latents,