Skip to content

Commit 844130c

Browse files
committed
docs: update docs for webui
1 parent 8e7e272 commit 844130c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,38 @@ Differences may be less or more pronounced for different inputs. Please see the
220220

221221
</details>
222222

223+
224+
## <a name="results-with-different-compute-units"></a> Play with simple Web UI
225+
226+
<details>
227+
<summary> Click to expand </summary>
228+
229+
After you have completed the model conversion according to the above process, you can use the following command to start a simple Web UI:
230+
231+
```bash
232+
python -m python_coreml_stable_diffusion.web -i <output-mlpackages-directory> --compute-unit ALL
233+
```
234+
235+
After the command is executed, we will get a log similar to the following:
236+
237+
```bash
238+
WARNING:coremltools:Torch version 1.13.0 has not been tested with coremltools. You may run into unexpected errors. Torch 1.12.1 is the most recent version that has been tested.
239+
INFO:python_coreml_stable_diffusion.pipeline:Initializing PyTorch pipe for reference configuration
240+
...
241+
...
242+
INFO:python_coreml_stable_diffusion.pipeline:Done.
243+
INFO:python_coreml_stable_diffusion.pipeline:Initializing Core ML pipe for image generation
244+
INFO:python_coreml_stable_diffusion.pipeline:Stable Diffusion configured to generate 512x512 images
245+
INFO:python_coreml_stable_diffusion.pipeline:Done.
246+
Running on local URL: http://0.0.0.0:7860
247+
248+
To create a public link, set `share=True` in `launch()`.
249+
```
250+
251+
Open `http://0.0.0.0:7860` in your browser to start your Core ML Stable Diffusion adventure.
252+
253+
</details>
254+
223255
## <a name="faq"></a> FAQ
224256

225257
<details>

0 commit comments

Comments
 (0)