Skip to content

Commit

Permalink
Add custom resolution back in
Browse files Browse the repository at this point in the history
  • Loading branch information
lucataco committed Aug 23, 2024
1 parent 4da7238 commit 4f79b10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def train(
batch_size: int = Input(
description="Batch size, you can leave this as 1", default=1
),
resolution: str = Input(
description="Image resolutions for training", default="512,768,1024"
),
lora_rank: int = Input(
description="Supports 16, 32, 64, 128. Higher ranks take longer to train but can capture more complex features. Caption quality is more important for higher ranks.",
default=16,
Expand Down Expand Up @@ -159,7 +162,9 @@ def train(
"caption_dropout_rate": 0.05,
"shuffle_tokens": False,
"cache_latents_to_disk": True,
"resolution": [512, 768, 1024],
"resolution": [
int(res) for res in resolution.split(",")
],
}
],
"train": {
Expand Down

0 comments on commit 4f79b10

Please sign in to comment.