mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
doc(development): add section on hot reloading with --dev_reload
This commit is contained in:
parent
3039f92e69
commit
76750b0121
@ -75,6 +75,20 @@ pytest --cov; open ./coverage/html/index.html
|
|||||||
|
|
||||||
![html-detail](../assets/contributing/html-detail.png)
|
![html-detail](../assets/contributing/html-detail.png)
|
||||||
|
|
||||||
|
### Reloading Changes
|
||||||
|
|
||||||
|
Experimenting with changes to the Python source code is a drag if you have to re-start the server —
|
||||||
|
and re-load those multi-gigabyte models —
|
||||||
|
after every change.
|
||||||
|
|
||||||
|
For a faster development workflow, add the `--dev_reload` flag when starting the server.
|
||||||
|
The server will watch for changes to all the Python files in the `invokeai` directory and apply those changes to the
|
||||||
|
running server on the fly.
|
||||||
|
|
||||||
|
This will allow you to avoid restarting the server (and reloading models) in most cases, but there are some caveats; see
|
||||||
|
the [jurigged documentation](https://github.com/breuleux/jurigged#caveats) for details.
|
||||||
|
|
||||||
|
|
||||||
## Front End
|
## Front End
|
||||||
|
|
||||||
<!--#TODO: get input from blessedcoolant here, for the moment inserted the frontend README via snippets extension.-->
|
<!--#TODO: get input from blessedcoolant here, for the moment inserted the frontend README via snippets extension.-->
|
||||||
|
@ -213,7 +213,7 @@ def invoke_api():
|
|||||||
import jurigged
|
import jurigged
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
logger.error(
|
logger.error(
|
||||||
"Can't start `--dev_reload` because jurigged is not found; `pip install -e '.[dev]'` to include development dependencies.",
|
'Can\'t start `--dev_reload` because jurigged is not found; `pip install -e ".[dev]"` to include development dependencies.',
|
||||||
exc_info=e,
|
exc_info=e,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user