(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 }} key: ${{ env.cache-name }}
enableCrossOsArchive: true enableCrossOsArchive: true
- name: run configure_invokeai - name: run invokeai-configure
id: run-preload-models id: run-preload-models
env: env:
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }} HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGINGFACE_TOKEN }}
run: > run: >
configure_invokeai invokeai-configure
--yes --yes
--default_only --default_only
--full-precision --full-precision

View File

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