(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

@ -21,6 +21,9 @@ import ldm.invoke
# global used in multiple functions (fix)
infile = None
if sys.platform == 'darwin':
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
def main():
"""Initialize command-line parsers and the diffusion model"""
global infile