Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue while loading textual embeddings #183

Open
vedant123454 opened this issue Aug 29, 2024 · 1 comment
Open

Getting issue while loading textual embeddings #183

vedant123454 opened this issue Aug 29, 2024 · 1 comment

Comments

@vedant123454
Copy link

We want to use photomaker with textual embeddings.
We are using following code to load the textual embeddings

pipe.load_textual_inversion("./some_model.pt", token="some_text")

But getting error

Traceback (most recent call last):
  File "create_personalized.py", line 196, in <module>
    images = pipe(
  File "/opt/conda/lib/python3.8/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/opt/conda/lib/python3.8/site-packages/photomaker/pipeline.py", line 336, in __call__
    ) = self.encode_prompt_with_trigger_word(
  File "/opt/conda/lib/python3.8/site-packages/photomaker/pipeline.py", line 176, in encode_prompt_with_trigger_word
    raise ValueError(
ValueError: PhotoMaker currently does not support multiple trigger words in a single prompt.                            Trigger word: img, Prompt: A single female wide angle shot of  pixar animation character of a photo of adult age female   wearing plain tshirt of A single female front-facing cartoon  upper torso running towards the viewer, waving hand in the air in pixar character style of adult age img age with a gentle smile expression, pixar-style, studio anime, Disney, high-quality.

@abdul756
Copy link

Am also facing the same issue please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants