Skip to content

Commit

Permalink
Reference the 2nd prompt embed when call()ing the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 7, 2023
1 parent 046a15d commit b721a58
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def __init__(self, pipeline, device, use_second_encoder: bool = False):
device="cuda",
use_penultimate_clip_layer=True
)
pipe_tokenizer = self.pipeline.tokenizer
pipe_text_encoder = self.pipeline.text_encoder

else:
# Any other pipeline uses the first tokenizer/encoder.
pipe_tokenizer = self.pipeline.tokenizer
Expand Down

0 comments on commit b721a58

Please sign in to comment.