Upload sd_token_similarity_calculator.ipynb
Browse files
sd_token_similarity_calculator.ipynb
CHANGED
@@ -136,8 +136,9 @@
|
|
136 |
"mix_method = \"None\" # @param [\"None\" , \"Average\", \"Subtract\"] {allow-input: true}\n",
|
137 |
"w = 0.5 # @param {type:\"slider\", min:0, max:1, step:0.01}\n",
|
138 |
"# @markdown Limit char size of included token\n",
|
139 |
-
"
|
140 |
-
"
|
|
|
141 |
"\n",
|
142 |
"tokenizer_output = tokenizer(text = prompt)\n",
|
143 |
"input_ids = tokenizer_output['input_ids']\n",
|
@@ -276,7 +277,7 @@
|
|
276 |
{
|
277 |
"cell_type": "code",
|
278 |
"source": [
|
279 |
-
"# @title 🪐🖼️ -> 📝
|
280 |
"\n",
|
281 |
"# @markdown # What do you want to to mimic?\n",
|
282 |
"use = '🖼️image_encoding from image' # @param ['📝text_encoding from prompt', '🖼️image_encoding from image']\n",
|
|
|
136 |
"mix_method = \"None\" # @param [\"None\" , \"Average\", \"Subtract\"] {allow-input: true}\n",
|
137 |
"w = 0.5 # @param {type:\"slider\", min:0, max:1, step:0.01}\n",
|
138 |
"# @markdown Limit char size of included token\n",
|
139 |
+
"\n",
|
140 |
+
"min_char_size = 0 # param {type:\"slider\", min:0, max: 50, step:1}\n",
|
141 |
+
"char_range = 50 # param {type:\"slider\", min:0, max: 50, step:1}\n",
|
142 |
"\n",
|
143 |
"tokenizer_output = tokenizer(text = prompt)\n",
|
144 |
"input_ids = tokenizer_output['input_ids']\n",
|
|
|
277 |
{
|
278 |
"cell_type": "code",
|
279 |
"source": [
|
280 |
+
"# @title 🪐🖼️ -> 📝 Token-Sampling Image interrogator\n",
|
281 |
"\n",
|
282 |
"# @markdown # What do you want to to mimic?\n",
|
283 |
"use = '🖼️image_encoding from image' # @param ['📝text_encoding from prompt', '🖼️image_encoding from image']\n",
|