Skip to content

Commit

Permalink
Removed unsupported parameters from flux lora network
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaltais committed Aug 31, 2024
1 parent 139f2c6 commit 8a524c7
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions kohya_gui/lora_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,19 +1066,8 @@ def train_model(
network_args = f" preset={LyCORIS_preset} rank_dropout={rank_dropout} module_dropout={module_dropout} use_tucker={use_tucker} use_scalar={use_scalar} rank_dropout_scale={rank_dropout_scale} algo=full train_norm={train_norm}"

if LoRA_type == "Flux1":
kohya_lora_var_list = [
"down_lr_weight",
"mid_lr_weight",
"up_lr_weight",
"block_lr_zero_threshold",
"block_dims",
"block_alphas",
"conv_block_dims",
"conv_block_alphas",
"rank_dropout",
"module_dropout",
"train_blocks",
]
# Add a list of supported network arguments for Flux1 below when supported
kohya_lora_var_list = []
network_module = "networks.lora_flux"
kohya_lora_vars = {
key: value
Expand Down

4 comments on commit 8a524c7

@FurkanGozukara
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't see any difference in saved json file @bmaltais is that expected?

i made a fresh one from 0

@bmaltais
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be no difference in the json file. Only in the toml.

@FurkanGozukara
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There will be no difference in the json file. Only in the toml.

this bug fix made huge improvement

prev vs new look clothing

image

image

@caniyabanci76
This comment was marked as a violation of GitHub Acceptable Use Policies
Please sign in to comment.