-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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.1 #588
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoRA レイヤー別学習率の実装、state_dict読み込みの際のdevice指定削除、typo修正
Open dataset_config json file before load
Check needless num_warmup_steps
Add min_snr_gamma to metadata
block learning rate, block dim(rank) etc.
Added a function to upload to Huggingface and resume from Huggingface.
feature to upload to huggingface etc.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional parameters
field under theAdvanced Configuration
accordion in theTraining Parameters
tab:There may be bugs because I changed a lot. If you cannot revert the script to the previous version when a problem occurs, please wait for the update for a while.
Added a feature to upload model and state to HuggingFace. Thanks to ddPn08 for the contribution! PR #348
When
--huggingface_repo_id
is specified, the model is uploaded to HuggingFace at the same time as saving the model.Please note that the access token is handled with caution. Please refer to the HuggingFace documentation.
For example, specify other arguments as follows.
--huggingface_repo_id "your-hf-name/your-model" --huggingface_path_in_repo "path" --huggingface_repo_type model --huggingface_repo_visibility private --huggingface_token hf_YourAccessTokenHere
If
public
is specified for--huggingface_repo_visibility
, the repository will be public. If the option is omitted orprivate
(or anything other thanpublic
) is specified, it will be private.If you specify
--save_state
and--save_state_to_huggingface
, the state will also be uploaded.If you specify
--resume
and--resume_from_huggingface
, the state will be downloaded from HuggingFace and resumed.--resume
option is--resume {repo_id}/{path_in_repo}:{revision}:{repo_type}
. For example:--resume_from_huggingface --resume your-hf-name/your-model/path/test-000002-state:main:model
If you specify
--async_upload
, the upload will be done asynchronously.Added the documentation for applying LoRA to generate with the standard pipeline of Diffusers. training LoRA (Google translate from Japanese)
Support for Attention Couple and regional LoRA in
gen_img_diffusers.py
.If you use
AND
to separate the prompts, each sub-prompt is sequentially applied to LoRA.--mask_path
is treated as a mask image. The number of sub-prompts and the number of LoRA must match.