Skip to content

Commit

Permalink
Merge branch 'batch-sd' of github.com:piercus/refiners into batch-sd
Browse files Browse the repository at this point in the history
  • Loading branch information
piercus committed Feb 20, 2024
2 parents d02a95e + 4dd6753 commit 8ab4e8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(
def init_context(self) -> Contexts:
return {"text_encoder_pooling": {"end_of_text_index": []}}

def __call__(self, text: str) -> tuple[Float[Tensor, "batch 77 1280"], Float[Tensor, "batch 1280"]]:
def __call__(self, text: str | list[str]) -> tuple[Float[Tensor, "batch 77 1280"], Float[Tensor, "batch 1280"]]:
return super().__call__(text)

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_double_text_encoder(diffusers_sdxl: DiffusersSDXL, double_text_encoder:


@no_grad()
def test_double_text_encoder_batch2(diffusers_sdxl: DiffusersSDXL, double_text_encoder: DoubleTextEncoder) -> None:
def test_double_text_encoder_batch2(double_text_encoder: DoubleTextEncoder) -> None:
manual_seed(seed=0)
prompt1 = "A photo of a pizza."
prompt2 = "A giant duck."
Expand Down

0 comments on commit 8ab4e8b

Please sign in to comment.