Commit
·
4338a65
1
Parent(s):
9149f32
webui.py
CHANGED
|
@@ -18,4 +18,8 @@ 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 |
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 |
+
CLIPTextEncodeOperator = CLIPTextEncode()
|
| 22 |
+
positive_embedding = CLIPTextEncodeOperator.encode(clip=xl_base_clip, text='a handsome man in forest')
|
| 23 |
+
negative_embedding = CLIPTextEncodeOperator.encode(clip=xl_base_clip, text='bad, ugly')
|
| 24 |
+
|
| 25 |
a = 0
|