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

v21.5.2 #610

Merged
merged 16 commits into from
Apr 12, 2023
Merged

v21.5.2 #610

merged 16 commits into from
Apr 12, 2023

Conversation

bmaltais
Copy link
Owner

@bmaltais bmaltais commented Apr 12, 2023

  • 2023/04/09 (v21.5.2)

    • Added support for training with weighted captions. Thanks to AI-Casanova for the great contribution!
    • Please refer to the PR for details: PR #336
    • Specify the --weighted_captions option. It is available for all training scripts except Textual Inversion and XTI.
    • This option is also applicable to token strings of the DreamBooth method.
    • The syntax for weighted captions is almost the same as the Web UI, and you can use things like (abc), [abc], and (abc:1.23). Nesting is also possible.
    • If you include a comma in the parentheses, the parentheses will not be properly matched in the prompt shuffle/dropout, so do not include a comma in the parentheses.
    • Run gui.sh from any place
    • Add upgrade.sh for MacOS

AI-Casanova and others added 16 commits April 2, 2023 19:43
Removed commented out lines from earlier bugfix.
Proof of Concept: Weighted captions
add weighted caption for training
Explanation:

* The first line #!/bin/bash specifies the shell to be used as bash.
* The if statement checks the output of the git status command. The grep command searches for any lines that start with a non-space character (not counting the ?? status, which indicates untracked files), indicating that there are changes that need to be committed.
* git pull pulls the latest changes from the remote repository.
* source venv/bin/activate activates the virtual environment.
* pip install --use-pep517 --upgrade -r requirements.txt upgrades the required packages in the activated virtual environment.
Upgrade that working on MacOS
It's much easier to step into kohya-ss directory as update all other python scripts to handle global paths
adjust global paths
@bmaltais bmaltais merged commit cc52c73 into master Apr 12, 2023
bmaltais pushed a commit that referenced this pull request Jul 22, 2023
Update huggingface hub to resolve error in windows
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.

5 participants