mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-18 04:20:46 -07:00
Updated Developing extensions (markdown)
parent
6df331a03a
commit
4a110fd370
1 changed files with 8 additions and 0 deletions
|
|
@ -43,3 +43,11 @@ import launch
|
|||
if not launch.is_installed("aitextgen"):
|
||||
launch.run_pip("install aitextgen==0.6.0", "requirements for MagicPrompt")
|
||||
```
|
||||
|
||||
## Minor tips
|
||||
### Adding extra textual inversion dirs
|
||||
This code goes into extension's script:
|
||||
```python
|
||||
path = os.path.join(modules.scripts.basedir(), "embeddings")
|
||||
modules.sd_hijack.model_hijack.embedding_db.add_embedding_dir(path)
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue