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

Text2Image readme fix. #1050

Merged
merged 5 commits into from
Oct 29, 2024
Merged
Changes from 2 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
8 changes: 6 additions & 2 deletions samples/python/text2image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Users can change the sample code and play with the following generation paramete
- (SD 1.x, 2.x only) Add negative prompt when guidance scale > 1
- Apply multiple different LoRA adapters and mix them with different blending coefficients

## Install OpenVINO™ GenAI and its dependencies

The instruction is provided in the [`README`](../../../README.md).

ilya-lavrenov marked this conversation as resolved.
Show resolved Hide resolved
## Download and convert the models and tokenizers

The `--upgrade-strategy eager` option is needed to ensure `optimum-intel` is upgraded to the latest version.
Expand All @@ -28,7 +32,7 @@ optimum-cli export openvino --model dreamlike-art/dreamlike-anime-1.0 --task sta

## Run

`python main.py ./dreamlike_anime_1_0_ov/FP16 "cyberpunk cityscape like Tokyo New York with tall buildings at dusk golden hour cinematic lighting"`
ilya-lavrenov marked this conversation as resolved.
Show resolved Hide resolved
`main.py ./dreamlike_anime_1_0_ov/FP16 "cyberpunk cityscape like Tokyo New York with tall buildings at dusk golden hour cinematic lighting"`

### Examples

Expand All @@ -47,7 +51,7 @@ Here is an example how to run the sample with a single adapter. First download a

Then run `lora.py`:

`python lora.py ./lora_stable_diffusion dreamlike_anime_1_0_ov/FP16 "curly-haired unicorn in the forest, anime, line" soulcard.safetensors 0.7`
ilya-lavrenov marked this conversation as resolved.
Show resolved Hide resolved
`lora.py ./dreamlike_anime_1_0_ov/FP16 "curly-haired unicorn in the forest, anime, line" soulcard.safetensors 0.7`

The sample generates two images with and without adapters applied using the same prompt:
- `lora.bmp` with adapters applied
Expand Down
Loading