mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
080fc4b380
- Added new documentation for textual inversion training process - Move `main.py` into the deprecated scripts folder - Fix bug in `textual_inversion.py` which was causing it to not load the globals module correctly. - Sort models alphabetically in console front end - Only show diffusers models in console front end
12 lines
382 B
Python
Executable File
12 lines
382 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
# Copyright 2023, Lincoln Stein @lstein
|
|
from ldm.invoke.globals import Globals, global_set_root
|
|
from ldm.invoke.textual_inversion_training import parse_args, do_textual_inversion_training
|
|
|
|
if __name__ == "__main__":
|
|
args = parse_args()
|
|
global_set_root(args.root_dir or Globals.root)
|
|
kwargs = vars(args)
|
|
do_textual_inversion_training(**kwargs)
|