resolved merge conflicts

This commit is contained in:
Lincoln Stein
2022-08-24 11:50:48 -04:00
8 changed files with 138 additions and 126 deletions

View File

@ -60,7 +60,8 @@ def main():
full_precision=opt.full_precision,
config=config,
latent_diffusion_weights=opt.laion400m, # this is solely for recreating the prompt
embedding_path=opt.embedding_path
embedding_path=opt.embedding_path,
device=opt.device
)
# make sure the output directory exists
@ -282,10 +283,14 @@ def create_argv_parser():
type=str,
default="outputs/img-samples",
help="directory in which to place generated images and a log of prompts and seeds")
parser.add_argument('--embedding_path',
type=str,
help="Path to a pre-trained embedding manager checkpoint - can only be set on command line")
parser.add_argument('--device',
'-d',
type=str,
default="cuda",
help="device to run stable diffusion on. defaults to cuda `torch.cuda.current_device()` if avalible")
return parser