2023-01-08 08:09:04 +00:00
|
|
|
"""
|
|
|
|
InvokeAI Installer
|
|
|
|
"""
|
|
|
|
|
2023-01-10 21:55:57 +00:00
|
|
|
import argparse
|
2023-01-08 08:09:04 +00:00
|
|
|
from installer import Installer
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2023-01-10 21:55:57 +00:00
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
|
2023-01-12 05:56:47 +00:00
|
|
|
parser.add_argument("-r", "--root", type=str, help="Destination path for installation", default="~/invokeai")
|
2023-01-10 21:55:57 +00:00
|
|
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
2023-01-08 08:09:04 +00:00
|
|
|
inst = Installer()
|
2023-01-10 21:55:57 +00:00
|
|
|
|
2023-01-08 08:09:04 +00:00
|
|
|
try:
|
2023-01-12 05:56:47 +00:00
|
|
|
inst.install(path=args.root)
|
2023-01-08 08:09:04 +00:00
|
|
|
except KeyboardInterrupt as exc:
|
|
|
|
print("\n")
|
|
|
|
print("Ctrl-C pressed. Aborting.")
|
|
|
|
print("See you again soon!")
|