@@ -25,18 +25,21 @@ You can manage API keys in your dreamstudio account [here](https://beta.dreamstu
2525
2626Then to invoke:
2727
28- ` python3 -m stability_sdk.client -W 512 -H 512 "A stunning house." `
28+ ` python3 -m stability_sdk generate -W 512 -H 512 "A stunning house." `
2929
3030It will generate and put PNGs in your current directory.
3131
32+ To upscale:
33+ ` python3 -m stability_sdk upscale -i "/path/to/image.png" `
34+
3235## SDK Usage
3336
3437See usage demo notebooks in ./nbs
3538
3639## Command line usage
3740
3841```
39- usage: python -m stability_sdk [-h] [--height HEIGHT] [--width WIDTH] [--start_schedule START_SCHEDULE]
42+ usage: python -m stability_sdk generate [-h] [--height HEIGHT] [--width WIDTH] [--start_schedule START_SCHEDULE]
4043 [--end_schedule END_SCHEDULE] [--cfg_scale CFG_SCALE] [--sampler SAMPLER]
4144 [--steps STEPS] [--seed SEED] [--prefix PREFIX] [--engine ENGINE]
4245 [--num_samples NUM_SAMPLES] [--artifact_types ARTIFACT_TYPES]
@@ -80,6 +83,31 @@ options:
8083 --mask_image MASK_IMAGE, -m MASK_IMAGE
8184 Mask image
8285```
86+ For upscale:
87+ ```
88+ usage: client.py upscale
89+ [-h]
90+ --init_image INIT_IMAGE
91+ [--height HEIGHT] [--width WIDTH] [--prefix PREFIX] [--artifact_types ARTIFACT_TYPES]
92+ [--no-store] [--show] [--engine ENGINE]
93+
94+ options:
95+ -h, --help show this help message and exit
96+ --init_image INIT_IMAGE, -i INIT_IMAGE
97+ Init image
98+ --height HEIGHT, -H HEIGHT
99+ height of upscaled image in pixels
100+ --width WIDTH, -W WIDTH
101+ width of upscaled image in pixels
102+ --prefix PREFIX, -p PREFIX
103+ output prefixes for artifacts
104+ --artifact_types ARTIFACT_TYPES, -t ARTIFACT_TYPES
105+ filter artifacts by type (ARTIFACT_IMAGE, ARTIFACT_TEXT, ARTIFACT_CLASSIFICATIONS, etc)
106+ --no-store do not write out artifacts
107+ --show open artifacts using PIL
108+ --engine ENGINE, -e ENGINE
109+ engine to use for upscale
110+ ```
83111
84112
85113## Connecting to the API using languages other than Python
0 commit comments