Update README.md
Browse files
README.md
CHANGED
@@ -48,19 +48,19 @@ pip install -e .
|
|
48 |
Once you know what model you want to convert and have accepted its Terms of Use, run the following command replacing `<model-identifier>` with the desired model's identifier:
|
49 |
|
50 |
```shell
|
51 |
-
python -m
|
52 |
```
|
53 |
|
54 |
**Local model:** Run the following command replacing `<model-location>` with the desired model's location path:
|
55 |
|
56 |
```shell
|
57 |
-
python -m
|
58 |
```
|
59 |
|
60 |
**Local CKPT:** Run the following command replacing `<checkpoint-path>` with the desired CKPT's location path:
|
61 |
|
62 |
```shell
|
63 |
-
python -m
|
64 |
```
|
65 |
|
66 |
**WARNING:** These commands may download several GB worth of PyTorch checkpoints from Hugging Face.
|
|
|
48 |
Once you know what model you want to convert and have accepted its Terms of Use, run the following command replacing `<model-identifier>` with the desired model's identifier:
|
49 |
|
50 |
```shell
|
51 |
+
python -m python_coreml_stable_diffusion.torch2coreml --model-version <model-identifier> -o <output-directory> --convert-unet --convert-text-encoder --convert-vae-encoder --convert-vae-decoder --convert-safety-checker --bundle-resources-for-guernika --clean-up-mlpackages
|
52 |
```
|
53 |
|
54 |
**Local model:** Run the following command replacing `<model-location>` with the desired model's location path:
|
55 |
|
56 |
```shell
|
57 |
+
python -m python_coreml_stable_diffusion.torch2coreml --model-location <model-location> -o <output-directory> --convert-unet --convert-text-encoder --convert-vae-encoder --convert-vae-decoder --convert-safety-checker --bundle-resources-for-guernika --clean-up-mlpackages
|
58 |
```
|
59 |
|
60 |
**Local CKPT:** Run the following command replacing `<checkpoint-path>` with the desired CKPT's location path:
|
61 |
|
62 |
```shell
|
63 |
+
python -m python_coreml_stable_diffusion.torch2coreml --checkpoint-path <checkpoint-path> -o <output-directory> --convert-unet --convert-text-encoder --convert-vae-encoder --convert-vae-decoder --convert-safety-checker --bundle-resources-for-guernika --clean-up-mlpackages
|
64 |
```
|
65 |
|
66 |
**WARNING:** These commands may download several GB worth of PyTorch checkpoints from Hugging Face.
|