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

Feature request: Add option to save each tag/caption on a separate line #305

Open
clayne opened this issue Nov 26, 2024 · 0 comments
Open

Comments

@clayne
Copy link

clayne commented Nov 26, 2024

Presently one can change the tag separator to another character. While I did not try it, I don't expect one can change it to a newline. There are some trainers that can alternate captions based on each line of the caption file (e.g. OneTrainer). This allows one to condition things differently while still keeping the various captions in order.

In fact it might be possible to extend this functionality to offer some kind of chunking similar to how various inference frontends split on 75 tokens for CLIP. As of right now I'm simply using a post-processing script to change the first comma to a newline with sed.

@clayne clayne changed the title Feature: Add option to save each tag/caption on a separate line Feature request: Add option to save each tag/caption on a separate line Nov 26, 2024
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

1 participant