You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,6 +220,51 @@ Differences may be less or more pronounced for different inputs. Please see the
220
220
221
221
</details>
222
222
223
+
224
+
## <aname="play-with-simple-web-ui"></a> Play with simple Web UI
225
+
226
+
<details>
227
+
<summary> Click to expand </summary>
228
+
229
+
<imgsrc="assets/webui.jpg">
230
+
231
+
After you have completed the model conversion according to the above process, you can use the following command to start a simple Web UI:
232
+
233
+
```bash
234
+
python -m python_coreml_stable_diffusion.web -i <output-mlpackages-directory> --compute-unit ALL
235
+
```
236
+
237
+
After the command is executed, we will get a log similar to the following:
238
+
239
+
```bash
240
+
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.
241
+
INFO:python_coreml_stable_diffusion.pipeline:Initializing PyTorch pipe for reference configuration
To create a public link, set`share=True`in`launch()`.
251
+
```
252
+
253
+
Open `http://0.0.0.0:7860`in your browser to start your Core ML Stable Diffusion adventure.
254
+
255
+
256
+
Web UI relies on gradio, a great interface framework. If you have not installed it, then execute the above command, the program will try to install it automatically.
257
+
258
+
If the installation fails, you can try to manually execute the following command to complete the dependency installation.
259
+
260
+
```bash
261
+
pip install gradio
262
+
```
263
+
264
+
When the installation is complete, re-execute the above command to start the Web UI.
0 commit comments