change initfile to ~/.invokeai

- adjust documentation
- also fix 'clipseg_models' to 'clipseg', which seems to be working now
This commit is contained in:
Lincoln Stein
2022-11-08 03:26:16 +00:00
parent 1fe41146f0
commit 636620b1d5
6 changed files with 13 additions and 10 deletions

View File

@@ -116,7 +116,7 @@ PRECISION_CHOICES = [
# is there a way to pick this up during git commits?
APP_ID = 'invoke-ai/InvokeAI'
APP_VERSION = 'v2.1.2'
INITFILE = 'invokeai.init'
INITFILE = os.path.expanduser('~/.invokeai')
class ArgFormatter(argparse.RawTextHelpFormatter):
# use defined argument order to display usage
@@ -170,7 +170,10 @@ class Args(object):
try:
sysargs = sys.argv[1:]
if os.path.exists(INITFILE):
print(f'>> Initialization file {INITFILE} found. Loading...')
sysargs.insert(0,f'@{INITFILE}')
else:
print(f'>> Initialization file {INITFILE} not found. Applying default settings...')
self._arg_switches = self._arg_parser.parse_args(sysargs)
return self._arg_switches
except Exception as e:

View File

@@ -29,7 +29,7 @@ work fine.
import torch
import numpy as np
from clipseg_models.clipseg import CLIPDensePredT
from clipseg.clipseg import CLIPDensePredT
from einops import rearrange, repeat
from PIL import Image, ImageOps
from torchvision import transforms