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

Update predict.py #45

Merged
merged 1 commit into from
May 7, 2024
Merged

Update predict.py #45

merged 1 commit into from
May 7, 2024

Conversation

yuxumin
Copy link
Contributor

@yuxumin yuxumin commented May 7, 2024

No description provided.

@yuxumin
Copy link
Contributor Author

yuxumin commented May 7, 2024

The common issue, as seen in examples like the TencentARC/PhotoMaker#55 or ZHO-ZHO-ZHO/ComfyUI-PhotoMaker-ZHO#56, is caused by the presence of the [NC] keyword in the comic description. This keyword leads to a trigger word of length 0 when dealing with the class_token_index.

However, the assertion in the main code overlooks this issue (caused by a typo).

@Z-YuPeng Z-YuPeng merged commit cd02bab into HVision-NKU:main May 7, 2024
@Z-YuPeng
Copy link
Collaborator

Z-YuPeng commented May 7, 2024

@yuxumin Hi,[NC] is support now, could you update it?

@yuxumin
Copy link
Contributor Author

yuxumin commented May 7, 2024

Already tried, now [NC] mode is well supported under photomaker, cool.

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

Successfully merging this pull request may close these issues.

2 participants