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

instanceprompt strategy fix for caption discovery #1271

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions helpers/configuration/cmd_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,8 @@ def get_argument_parser():
default=False,
action="store_true",
help=(
"Whether or not to use a uniform schedule with flow-matching models instead of sigmoid."
" Using uniform sampling may help preserve more capabilities from the base model."
" Some tasks may not benefit from this."
"Whether or not to use a uniform schedule instead of sigmoid for flow-matching noise schedule."
" Using uniform sampling may cause a bias toward dark images, and should be used with caution."
),
)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion helpers/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def get_all_captions(
sampler_backend_id=data_backend.id,
)
elif caption_strategy == "instanceprompt":
return [instance_prompt]
return [instance_prompt], []
elif caption_strategy == "csv":
caption = data_backend.get_caption(image_path)
else:
Expand Down
Loading