Update README.md
Browse files
README.md
CHANGED
|
@@ -146,6 +146,8 @@ vae = AutoencoderKL.from_single_file(
|
|
| 146 |
# use 'torch_dtype=torch.float16' for FP16.
|
| 147 |
# add 'subfolder="folder_name"' argument if the VAE is in specific folder.
|
| 148 |
```
|
|
|
|
|
|
|
| 149 |
### From CivitAI 🇨
|
| 150 |
It's trickier if the VAE is in [CivitAI](civitai.com), because you can't use
|
| 151 |
`from_single_file()` method. It only works for files inside HuggingFace and local files only. You can upload the VAE from there into
|
|
@@ -181,5 +183,5 @@ pipeline = StableDiffusionXLPipeline.from_pretrained(
|
|
| 181 |
# Use 'torch_dtype=torch.float16' for both
|
| 182 |
# AutoencoderKL and SDXL pipeline for FP16.
|
| 183 |
```
|
| 184 |
-
|
| 185 |
# That's all for this repository. Thank you for reading my silly note. Have a nice day!
|
|
|
|
| 146 |
# use 'torch_dtype=torch.float16' for FP16.
|
| 147 |
# add 'subfolder="folder_name"' argument if the VAE is in specific folder.
|
| 148 |
```
|
| 149 |
+
You can use [hf_hub_download()](https://huggingface.co/docs/huggingface_hub/en/guides/download) from [huggingface_hub](https://huggingface.co/docs/huggingface_hub/en/index)
|
| 150 |
+
casually without the need to check if previous method returns `HTTP404` error.
|
| 151 |
### From CivitAI 🇨
|
| 152 |
It's trickier if the VAE is in [CivitAI](civitai.com), because you can't use
|
| 153 |
`from_single_file()` method. It only works for files inside HuggingFace and local files only. You can upload the VAE from there into
|
|
|
|
| 183 |
# Use 'torch_dtype=torch.float16' for both
|
| 184 |
# AutoencoderKL and SDXL pipeline for FP16.
|
| 185 |
```
|
| 186 |
+
Now you have it, loaded VAE from [CivitAI](civitai.com).
|
| 187 |
# That's all for this repository. Thank you for reading my silly note. Have a nice day!
|