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

updates to region_based example #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dribnet
Copy link
Contributor

@dribnet dribnet commented Aug 25, 2024

Changes to get region_based.py running examples from paper.
Includes three sample masks. (those should should show up below)
Fixes #28

Examples:

python region_based.py --W 512 --H 512 \
    --fg_masks "examples/elephant_mask.png" \
    --fg_prompts "A White Elephant" \
    --bg_prompt "Many stars and the milky way shining brighly in the dark night sky" \
    --outfile outputs/reboot_elepant_05.jpg

reboot_elepant_05

python region_based.py \
    --fg_masks "examples/pile_mask.png" "examples/pile_top_mask.png" \
    --fg_prompts "a tree trunk" "a bright red cardninal bird" \
    --bg_prompt "a desolate and arid desert" \
    --outfile outputs/reboot_bird_pile_05.jpg

reboot_bird_pile_05

Note that I renamed masks to be fg_masks to make it clear that those are foreground masks and each needs a corresponding fg_prompt (and optionally fg_negative, though those are now set by default to an empty string).

Changes to get example running on examples from paper
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.

region based not working for multiple prompts
1 participant