(scripts) improved script entrypoints

This commit is contained in:
Eugene Brodsky 2023-01-28 16:56:14 -05:00
parent f1f8ce604a
commit abe4e1ea91
2 changed files with 12 additions and 6 deletions

View File

@ -107,12 +107,12 @@ jobs:
key: ${{ env.cache-name }}
enableCrossOsArchive: true
- name: run configure_invokeai
- name: run invokeai-configure
id: run-preload-models
env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
run: >
configure_invokeai
invokeai-configure
--yes
--default_only
--full-precision

View File

@ -91,10 +91,16 @@ dependencies = [
"test" = ["pytest>6.0.0", "pytest-cov"]
[project.scripts]
"invoke" = "ldm.invoke.CLI:main"
"invoke-configure" = "ldm.invoke.config.configure_invokeai:main"
"invoke-merge" = "ldm.invoke.merge_diffusers:main" # note name munging
"invoke-ti" = "ldm.invoke.training.textual_inversion:main"
# legacy entrypoints; provided for backwards compatibility
"invoke.py" = "ldm.invoke.CLI:main"
"configure_invokeai.py" = "ldm.invoke.config.configure_invokeai:main"
# modern entrypoints
"invokeai" = "ldm.invoke.CLI:main"
"invokeai-configure" = "ldm.invoke.config.configure_invokeai:main"
"invokeai-merge" = "ldm.invoke.merge_diffusers:main" # note name munging
"invokeai-ti" = "ldm.invoke.training.textual_inversion:main"
[project.urls]
"Homepage" = "https://invoke-ai.github.io/InvokeAI/"