minor doc fixes

This commit is contained in:
Lincoln Stein 2022-10-14 07:30:26 -04:00
parent 6afc0f9b38
commit 1c501333e8
2 changed files with 4 additions and 4 deletions

View File

@ -332,7 +332,7 @@ automatically.
Example: Example:
<pre> <pre>
invoke> <b>!import_model models/ldm/stable-diffusion-v1/model-epoch08-float16.ckpt</b> invoke> <b>!import_model models/ldm/stable-diffusion-v1/ model-epoch08-float16.ckpt</b>
>> Model import in process. Please enter the values needed to configure this model: >> Model import in process. Please enter the values needed to configure this model:
Name for this model: <b>waifu-diffusion</b> Name for this model: <b>waifu-diffusion</b>
@ -343,9 +343,9 @@ Default image height: <b>512</b>
>> New configuration: >> New configuration:
waifu-diffusion: waifu-diffusion:
config: configs/stable-diffusion/v1-inference.yaml config: configs/stable-diffusion/v1-inference.yaml
description: Really horrible Hentai pictures description: Waifu Diffusion v1.3
height: 512 height: 512
weights: models/ldm/stable-diffusion-v1/RD1412.ckpt weights: models/ldm/stable-diffusion-v1/model-epoch08-float16.ckpt
width: 512 width: 512
OK to import [n]? <b>y</b> OK to import [n]? <b>y</b>
>> Caching model stable-diffusion-1.4 in system RAM >> Caching model stable-diffusion-1.4 in system RAM

View File

@ -416,7 +416,7 @@ def add_weights_to_config(model_path:str, gen, opt, completer):
done = False done = False
while not done: while not done:
model_name = input('Name for this model: ') model_name = input('Short name for this model: ')
if not re.match('^[\w._-]+$',model_name): if not re.match('^[\w._-]+$',model_name):
print('** model name must contain only words, digits and the characters [._-] **') print('** model name must contain only words, digits and the characters [._-] **')
else: else: