InvokeAI/ldm
Lincoln Stein de7abce464
add an argument that lets user specify folders to scan for weights (#1977)
* add an argument that lets user specify folders to scan for weights

This PR adds a `--weight_folders` argument to invoke.py. Using
argparse, it adds a "weight_folders" attribute to the Args object, and
can be used like this:

```
'''test.py'''
from ldm.invoke.args import Args

args = Args().parse_args()

for folder in args.weight_folders:
    print(folder)
```

Example output:

```
python test.py --weight_folders /tmp/weights /home/fred/invokeai/weights "./my folder with spaces/weight files"
/tmp/weights
/home/fred/invokeai/weights
./my folder with spaces/weight files
```

* change --weight_folders to --weight_dirs
2022-12-16 15:14:49 +00:00
..
data Textual Inversion for M1 2022-09-27 01:39:17 +02:00
invoke add an argument that lets user specify folders to scan for weights (#1977) 2022-12-16 15:14:49 +00:00
models fix for crash with inpainting model introduced by #1866 (#1922) 2022-12-11 13:48:12 -05:00
modules Add Embedding Parsing (#1973) 2022-12-15 17:26:36 -05:00
__init__.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
generate.py Load model in inpaint when using free_gpu_mem option (#1938) 2022-12-12 09:14:30 -05:00
lr_scheduler.py prettified all the code using "blue" at the urging of @tildebyte 2022-08-26 03:15:42 -04:00
simplet2i.py Squashed commit of the following: 2022-09-12 14:31:48 -04:00
util.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00