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

Image generation #46

Merged
merged 2 commits into from
Apr 11, 2023
Merged

Image generation #46

merged 2 commits into from
Apr 11, 2023

Conversation

rlouf
Copy link
Member

@rlouf rlouf commented Apr 11, 2023

This PR implements a decorator that simplifies text-to-images workflows:

import outlines.image as image


@image.generation("hf/runwayml/stable-diffusion-v1-5")
def generate_living_room():
    """environment living room interior, mid century modern, indoor garden with fountain,\
     retro,m vintage, designer furniture made of wood and plastic, concrete table, wood walls, \
     indoor potted tree, large window, outdoor forest landscape, beautiful sunset, cinematic, \
     concept art, sunstainable architecture, octane render, utopia, ethereal, cinematic light, \
     –ar 16:9 –stylize 45000"""


img = generate_living_room()
img.eval()

@rlouf rlouf merged commit 9043cc6 into main Apr 11, 2023
@rlouf rlouf deleted the image-generation branch April 11, 2023 12:07
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.

None yet

1 participant