mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-03-04 04:54:54 +08:00
Updated Developing extensions (markdown)
parent
6df331a03a
commit
4a110fd370
@ -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…
Reference in New Issue
Block a user