i
This commit is contained in:
parent
63eb641ca7
commit
a6ec0509fd
12
webui.py
12
webui.py
@ -18,8 +18,14 @@ xl_refiner_filename = os.path.join(modelfile_path, 'sd_xl_refiner_1.0.safetensor
|
||||
xl_base, xl_base_clip, xl_base_vae, xl_base_clipvision = load_checkpoint_guess_config(xl_base_filename)
|
||||
del xl_base_clipvision
|
||||
|
||||
CLIPTextEncodeOperator = CLIPTextEncode()
|
||||
positive_embedding = CLIPTextEncodeOperator.encode(clip=xl_base_clip, text='a handsome man in forest')
|
||||
negative_embedding = CLIPTextEncodeOperator.encode(clip=xl_base_clip, text='bad, ugly')
|
||||
opCLIPTextEncode = CLIPTextEncode()
|
||||
opEmptyLatentImage = EmptyLatentImage()
|
||||
opKSamplerAdvanced = KSamplerAdvanced()
|
||||
|
||||
|
||||
positive_embedding = opCLIPTextEncode.encode(clip=xl_base_clip, text='a handsome man in forest')
|
||||
negative_embedding = opCLIPTextEncode.encode(clip=xl_base_clip, text='bad, ugly')
|
||||
|
||||
initial_latent_image = opEmptyLatentImage.generate(width=1024, height=1536, batch_size=1)
|
||||
|
||||
a = 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user