Commit
·
c779f27
1
Parent(s):
4338a65
webui.py
CHANGED
|
@@ -18,8 +18,14 @@ xl_refiner_filename = os.path.join(modelfile_path, 'sd_xl_refiner_1.0.safetensor
|
|
| 18 |
xl_base, xl_base_clip, xl_base_vae, xl_base_clipvision = load_checkpoint_guess_config(xl_base_filename)
|
| 19 |
del xl_base_clipvision
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
a = 0
|
|
|
|
| 18 |
xl_base, xl_base_clip, xl_base_vae, xl_base_clipvision = load_checkpoint_guess_config(xl_base_filename)
|
| 19 |
del xl_base_clipvision
|
| 20 |
|
| 21 |
+
opCLIPTextEncode = CLIPTextEncode()
|
| 22 |
+
opEmptyLatentImage = EmptyLatentImage()
|
| 23 |
+
opKSamplerAdvanced = KSamplerAdvanced()
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
positive_embedding = opCLIPTextEncode.encode(clip=xl_base_clip, text='a handsome man in forest')
|
| 27 |
+
negative_embedding = opCLIPTextEncode.encode(clip=xl_base_clip, text='bad, ugly')
|
| 28 |
+
|
| 29 |
+
initial_latent_image = opEmptyLatentImage.generate(width=1024, height=1536, batch_size=1)
|
| 30 |
|
| 31 |
a = 0
|