InvokeAI/ldm/invoke
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
..
generator Correct timestep for img2img initial noise addition (#1946) 2022-12-15 15:59:19 -05:00
restoration Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
__init__.py Simple Installer for Unified Directory Structure, Initial Implementation (#1819) 2022-12-11 00:37:08 -05:00
args.py add an argument that lets user specify folders to scan for weights (#1977) 2022-12-16 15:14:49 +00:00
CLI.py Fix --config arg not being recognized 2022-12-16 18:29:47 +13:00
concepts_lib.py close #1956 (#1962) 2022-12-13 01:12:53 -05:00
conditioning.py restrict to 75 tokens and correctly handle blends 2022-12-14 16:54:27 -05:00
devices.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
globals.py Possible fix for crash introduced in #1948 (#1963) 2022-12-13 01:14:46 -05:00
image_util.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
log.py rename all modules from ldm.dream to ldm.invoke 2022-10-08 11:37:23 -04:00
model_cache.py Account for flat models 2022-12-07 12:11:37 -05:00
pngwriter.py correct bug when trying to enhance JPG images (#1928) 2022-12-11 13:48:47 -05:00
prompt_parser.py Save and display per-token attention maps (#1866) 2022-12-10 15:57:41 +01:00
readline.py Save and display per-token attention maps (#1866) 2022-12-10 15:57:41 +01:00
seamless.py Split seamless config into separate file 2022-10-17 19:31:20 -04:00
server_legacy.py Add back old dream.py as legacy_api.py 2022-10-12 20:35:56 -04:00
server.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00
txt2mask.py Merge dev into main for 2.2.0 (#1642) 2022-11-30 16:12:23 -05:00