(scripts) rename/reorganize CLI scripts

- add torch MPS fallback directly to CLI.py
- rename CLI scripts with `invoke-...` prefix
- delete long-deprecated scripts
- add a missing package dependency
- delete setup.py as obsolete
This commit is contained in:
Eugene Brodsky
2023-01-27 01:20:50 -05:00
parent 22c34aabfe
commit 2ff47cdecf
7 changed files with 9 additions and 134 deletions

View File

@ -1,11 +1,9 @@
#!/usr/bin/env python
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
# Before running stable-diffusion on an internet-isolated machine,
# run this script from one with internet connectivity. The
# two machines must share a common .cache directory.
import warnings
from ldm.invoke.config import configure_invokeai
if __name__ == '__main__':
warnings.warn("configire_invokeai.py is deprecated, please run 'invoke'", DeprecationWarning)
configure_invokeai.main()

View File

@ -2,9 +2,6 @@
import sys
import os
if sys.platform == 'darwin':
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
import ldm.invoke.CLI
ldm.invoke.CLI.main()

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
# Before running stable-diffusion on an internet-isolated machine,
# run this script from one with internet connectivity. The
# two machines must share a common .cache directory.
import warnings
import ldm.invoke.configure_invokeai as configure_invokeai
if __name__ == '__main__':
configure_invokeai.main()

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
# Before running stable-diffusion on an internet-isolated machine,
# run this script from one with internet connectivity. The
# two machines must share a common .cache directory.
import warnings
import ldm.invoke.configure_invokeai as configure_invokeai
if __name__ == '__main__':
configure_invokeai.main()