huge awoo
Browse filesSigned-off-by: Balazs Horvath <[email protected]>
- README.md +1 -1
- dataset_tools/Count Tokens in Sample Prompts.ipynb +140 -52
README.md
CHANGED
@@ -144,7 +144,7 @@ A sample prompt file is used during training to sample images. A sample prompt f
|
|
144 |
|
145 |
```py
|
146 |
# anthro female kindred
|
147 |
-
score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, female anthro kindred presenting, white pillow, bedroom, looking at viewer, detailed background, amazing_background, scenery porn, realistic, photo --n low quality, worst quality, blurred background, blurry, simple background --w 1024 --h 1024 --d 1 --l 6.0 --s 40
|
148 |
# anthro female wolf
|
149 |
score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black nose, blue eyes, pink areola, pink nipples, detailed background, amazing_background, realistic, photo --n low quality, worst quality, blurred background, blurry, simple background --w 1024 --h 1024 --d 1 --l 6.0 --s 40
|
150 |
```
|
|
|
144 |
|
145 |
```py
|
146 |
# anthro female kindred
|
147 |
+
score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, female anthro kindred, mask, presenting, white pillow, bedroom, looking at viewer, detailed background, amazing_background, scenery porn, realistic, photo --n low quality, worst quality, blurred background, blurry, simple background --w 1024 --h 1024 --d 1 --l 6.0 --s 40
|
148 |
# anthro female wolf
|
149 |
score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black nose, blue eyes, pink areola, pink nipples, detailed background, amazing_background, realistic, photo --n low quality, worst quality, blurred background, blurry, simple background --w 1024 --h 1024 --d 1 --l 6.0 --s 40
|
150 |
```
|
dataset_tools/Count Tokens in Sample Prompts.ipynb
CHANGED
@@ -2,32 +2,43 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
"outputs": [
|
8 |
{
|
9 |
"data": {
|
10 |
"text/html": [
|
11 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"
|
12 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
14 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
15 |
-
"β Positive β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β
|
16 |
-
"β β female anthro kindred presenting, white pillow, bedroom, looking at viewer,
|
17 |
"β β detailed background, amazing_background, scenery porn, realistic, photo β β\n",
|
18 |
-
"β Negative β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
19 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
20 |
"</pre>\n"
|
21 |
],
|
22 |
"text/plain": [
|
23 |
-
"\u001b[3m Prompt Analysis \u001b[0m\n",
|
24 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
25 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
26 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
27 |
-
"β
|
28 |
-
"β β female anthro kindred presenting, white pillow, bedroom, looking at viewer,
|
29 |
"β β detailed background, amazing_background, scenery porn, realistic, photo β β\n",
|
30 |
-
"β
|
31 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
32 |
]
|
33 |
},
|
@@ -37,28 +48,26 @@
|
|
37 |
{
|
38 |
"data": {
|
39 |
"text/html": [
|
40 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"
|
41 |
-
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
42 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
43 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
44 |
-
"β Positive β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 70 β\n",
|
45 |
"β β anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black β β\n",
|
46 |
"β β nose, blue eyes, pink areola, pink nipples, detailed background, β β\n",
|
47 |
"β β amazing_background, realistic, photo β β\n",
|
48 |
-
"β Negative β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
49 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
50 |
"</pre>\n"
|
51 |
],
|
52 |
"text/plain": [
|
53 |
-
"\u001b[3m Prompt Analysis \u001b[0m\n",
|
54 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
55 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
56 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
57 |
-
"β
|
58 |
"β β anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black β β\n",
|
59 |
"β β nose, blue eyes, pink areola, pink nipples, detailed background, β β\n",
|
60 |
"β β amazing_background, realistic, photo β β\n",
|
61 |
-
"β
|
62 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
63 |
]
|
64 |
},
|
@@ -68,28 +77,26 @@
|
|
68 |
{
|
69 |
"data": {
|
70 |
"text/html": [
|
71 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"
|
72 |
-
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
73 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
74 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
75 |
-
"β Positive β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 73 β\n",
|
76 |
"β β anthro male fox, glowing yellow eyes, night, crescent moon, gold bracers and β β\n",
|
77 |
"β β necklace, loincloth, canine genitalia, knot, amazing_background, scenery porn, β β\n",
|
78 |
"β β white marble ruins, realistic, photo β β\n",
|
79 |
-
"β Negative β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
80 |
"βββββββοΏ½οΏ½βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
81 |
"</pre>\n"
|
82 |
],
|
83 |
"text/plain": [
|
84 |
-
"\u001b[3m Prompt Analysis \u001b[0m\n",
|
85 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
86 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
87 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
88 |
-
"β
|
89 |
"β β anthro male fox, glowing yellow eyes, night, crescent moon, gold bracers and β β\n",
|
90 |
"β β necklace, loincloth, canine genitalia, knot, amazing_background, scenery porn, β β\n",
|
91 |
"β β white marble ruins, realistic, photo β β\n",
|
92 |
-
"β
|
93 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
94 |
]
|
95 |
},
|
@@ -99,73 +106,154 @@
|
|
99 |
{
|
100 |
"data": {
|
101 |
"text/html": [
|
102 |
-
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"
|
103 |
-
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
104 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
105 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
106 |
-
"β Positive β score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, solo, β 74 β\n",
|
107 |
"β β full-length portrait, anthro female red panda, detailed background, β β\n",
|
108 |
"β β amazing_background, pussy, scenery porn, photo, realistic, looking at viewer, on β β\n",
|
109 |
"β β back, sexy pose, humanoid hands, claws, pink areola, pink nipples β β\n",
|
110 |
-
"β Negative β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
111 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
112 |
"</pre>\n"
|
113 |
],
|
114 |
"text/plain": [
|
115 |
-
"\u001b[3m Prompt Analysis \u001b[0m\n",
|
116 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
117 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
118 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
119 |
-
"β
|
120 |
"β β full-length portrait, anthro female red panda, detailed background, β β\n",
|
121 |
"β β amazing_background, pussy, scenery porn, photo, realistic, looking at viewer, on β β\n",
|
122 |
"β β back, sexy pose, humanoid hands, claws, pink areola, pink nipples β β\n",
|
123 |
-
"β
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
125 |
]
|
126 |
},
|
127 |
"metadata": {},
|
128 |
"output_type": "display_data"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
],
|
131 |
"source": [
|
|
|
132 |
"import tiktoken\n",
|
133 |
"from rich.console import Console\n",
|
134 |
"from rich.table import Table\n",
|
135 |
"\n",
|
|
|
136 |
"def count_tokens(text):\n",
|
137 |
" enc = tiktoken.get_encoding(\"cl100k_base\")\n",
|
138 |
" tokens = enc.encode(text)\n",
|
139 |
" return len(tokens)\n",
|
140 |
"\n",
|
141 |
-
"
|
142 |
"\n",
|
143 |
-
"
|
144 |
-
" lines = file.readlines()\n",
|
145 |
"\n",
|
146 |
-
"for
|
147 |
-
" if
|
148 |
-
"
|
|
|
149 |
"\n",
|
150 |
-
"
|
151 |
-
"
|
152 |
-
"
|
153 |
"\n",
|
154 |
-
"
|
155 |
-
"
|
|
|
|
|
|
|
|
|
156 |
"\n",
|
157 |
-
"
|
158 |
-
"
|
159 |
-
" table.add_column(\"Prompt\", justify=\"left\")\n",
|
160 |
-
" table.add_column(\"Token Count\", justify=\"right\")\n",
|
161 |
"\n",
|
162 |
-
"
|
163 |
-
"
|
|
|
|
|
|
|
|
|
|
|
164 |
"\n",
|
165 |
-
"
|
|
|
|
|
|
|
|
|
166 |
"\n",
|
167 |
-
"
|
168 |
-
" console.print(f\"[bold red]Warning: Positive prompt token count exceeds 75.[/bold red]\")"
|
169 |
]
|
170 |
}
|
171 |
],
|
@@ -185,7 +273,7 @@
|
|
185 |
"name": "python",
|
186 |
"nbconvert_exporter": "python",
|
187 |
"pygments_lexer": "ipython3",
|
188 |
-
"version": "3.12.
|
189 |
}
|
190 |
},
|
191 |
"nbformat": 4,
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 3,
|
6 |
"metadata": {},
|
7 |
"outputs": [
|
8 |
{
|
9 |
"data": {
|
10 |
"text/html": [
|
11 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">Processing file: E:\\training_dir\\realistic-sample-prompts.txt\n",
|
12 |
+
"</pre>\n"
|
13 |
+
],
|
14 |
+
"text/plain": [
|
15 |
+
"Processing file: E:\\training_dir\\realistic-sample-prompts.txt\n"
|
16 |
+
]
|
17 |
+
},
|
18 |
+
"metadata": {},
|
19 |
+
"output_type": "display_data"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"data": {
|
23 |
+
"text/html": [
|
24 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
25 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
26 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
27 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 60 β\n",
|
28 |
+
"β β female anthro kindred, mask, presenting, white pillow, bedroom, looking at viewer, β β\n",
|
29 |
"β β detailed background, amazing_background, scenery porn, realistic, photo β β\n",
|
30 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
31 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
32 |
"</pre>\n"
|
33 |
],
|
34 |
"text/plain": [
|
|
|
35 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
36 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
37 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
38 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 60 β\n",
|
39 |
+
"β β female anthro kindred, mask, presenting, white pillow, bedroom, looking at viewer, β β\n",
|
40 |
"β β detailed background, amazing_background, scenery porn, realistic, photo β β\n",
|
41 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
42 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
43 |
]
|
44 |
},
|
|
|
48 |
{
|
49 |
"data": {
|
50 |
"text/html": [
|
51 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
|
|
52 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
53 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
54 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 70 β\n",
|
55 |
"β β anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black β β\n",
|
56 |
"β β nose, blue eyes, pink areola, pink nipples, detailed background, β β\n",
|
57 |
"β β amazing_background, realistic, photo β β\n",
|
58 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
59 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
60 |
"</pre>\n"
|
61 |
],
|
62 |
"text/plain": [
|
|
|
63 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
64 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
65 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
66 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 70 β\n",
|
67 |
"β β anthro female wolf, sexy pose, standing, gray fur, brown fur, canine pussy, black β β\n",
|
68 |
"β β nose, blue eyes, pink areola, pink nipples, detailed background, β β\n",
|
69 |
"β β amazing_background, realistic, photo β β\n",
|
70 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
71 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
72 |
]
|
73 |
},
|
|
|
77 |
{
|
78 |
"data": {
|
79 |
"text/html": [
|
80 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
|
|
81 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
82 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
83 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 73 β\n",
|
84 |
"β β anthro male fox, glowing yellow eyes, night, crescent moon, gold bracers and β β\n",
|
85 |
"β β necklace, loincloth, canine genitalia, knot, amazing_background, scenery porn, β β\n",
|
86 |
"β β white marble ruins, realistic, photo β β\n",
|
87 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
88 |
"βββββββοΏ½οΏ½βββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
89 |
"</pre>\n"
|
90 |
],
|
91 |
"text/plain": [
|
|
|
92 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
93 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
94 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
95 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β 73 β\n",
|
96 |
"β β anthro male fox, glowing yellow eyes, night, crescent moon, gold bracers and β β\n",
|
97 |
"β β necklace, loincloth, canine genitalia, knot, amazing_background, scenery porn, β β\n",
|
98 |
"β β white marble ruins, realistic, photo β β\n",
|
99 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
100 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
101 |
]
|
102 |
},
|
|
|
106 |
{
|
107 |
"data": {
|
108 |
"text/html": [
|
109 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
|
|
110 |
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
111 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
112 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, solo, β 74 β\n",
|
113 |
"β β full-length portrait, anthro female red panda, detailed background, β β\n",
|
114 |
"β β amazing_background, pussy, scenery porn, photo, realistic, looking at viewer, on β β\n",
|
115 |
"β β back, sexy pose, humanoid hands, claws, pink areola, pink nipples β β\n",
|
116 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
117 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
118 |
"</pre>\n"
|
119 |
],
|
120 |
"text/plain": [
|
|
|
121 |
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
122 |
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
123 |
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
124 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, solo, β 74 β\n",
|
125 |
"β β full-length portrait, anthro female red panda, detailed background, β β\n",
|
126 |
"β β amazing_background, pussy, scenery porn, photo, realistic, looking at viewer, on β β\n",
|
127 |
"β β back, sexy pose, humanoid hands, claws, pink areola, pink nipples β β\n",
|
128 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
129 |
+
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
130 |
+
]
|
131 |
+
},
|
132 |
+
"metadata": {},
|
133 |
+
"output_type": "display_data"
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"data": {
|
137 |
+
"text/html": [
|
138 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
139 |
+
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
140 |
+
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
141 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, rating_explicit, source_furry, solo, full-length β 69 β\n",
|
142 |
+
"β β portrait, anthro female snow leopard, pussy, pink nipples, pink areola, detailed β β\n",
|
143 |
+
"β β background, amazing_background, scenery porn, snowy mountain peak, on back, sexy β β\n",
|
144 |
+
"β β pose, looking at viewer, realistic, photo β β\n",
|
145 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
146 |
+
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
147 |
+
"</pre>\n"
|
148 |
+
],
|
149 |
+
"text/plain": [
|
150 |
+
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
151 |
+
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
152 |
+
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
153 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, rating_explicit, source_furry, solo, full-length β 69 β\n",
|
154 |
+
"β β portrait, anthro female snow leopard, pussy, pink nipples, pink areola, detailed β β\n",
|
155 |
+
"β β background, amazing_background, scenery porn, snowy mountain peak, on back, sexy β β\n",
|
156 |
+
"β β pose, looking at viewer, realistic, photo β β\n",
|
157 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
158 |
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
159 |
]
|
160 |
},
|
161 |
"metadata": {},
|
162 |
"output_type": "display_data"
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"data": {
|
166 |
+
"text/html": [
|
167 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
168 |
+
"β<span style=\"font-weight: bold\"> Prompt Type </span>β<span style=\"font-weight: bold\"> Prompt </span>β<span style=\"font-weight: bold\"> Token Count </span>β\n",
|
169 |
+
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
170 |
+
"β <span style=\"color: #008000; text-decoration-color: #008000\">Positive</span> β score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, portrait, β 71 β\n",
|
171 |
+
"β β an anthro male wolf, black nose, (white fur:1.2), monotone fur, green eyes, purple β β\n",
|
172 |
+
"β β wizard hat, purple wizard robe, detailed background, amazing_background, forest, β β\n",
|
173 |
+
"β β realistic, photo β β\n",
|
174 |
+
"β <span style=\"color: #800000; text-decoration-color: #800000\">Negative</span> β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
175 |
+
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n",
|
176 |
+
"</pre>\n"
|
177 |
+
],
|
178 |
+
"text/plain": [
|
179 |
+
"βββββββββββββββ³ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ³ββββββββββββββ\n",
|
180 |
+
"β\u001b[1m \u001b[0m\u001b[1mPrompt Type\u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mPrompt \u001b[0m\u001b[1m \u001b[0mβ\u001b[1m \u001b[0m\u001b[1mToken Count\u001b[0m\u001b[1m \u001b[0mβ\n",
|
181 |
+
"β‘ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ©\n",
|
182 |
+
"β \u001b[32mPositive\u001b[0m β score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, portrait, β 71 β\n",
|
183 |
+
"β β an anthro male wolf, black nose, (white fur:1.2), monotone fur, green eyes, purple β β\n",
|
184 |
+
"β β wizard hat, purple wizard robe, detailed background, amazing_background, forest, β β\n",
|
185 |
+
"β β realistic, photo β β\n",
|
186 |
+
"β \u001b[31mNegative\u001b[0m β low quality, worst quality, blurred background, blurry, simple background β 13 β\n",
|
187 |
+
"βββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββ\n"
|
188 |
+
]
|
189 |
+
},
|
190 |
+
"metadata": {},
|
191 |
+
"output_type": "display_data"
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"data": {
|
195 |
+
"text/html": [
|
196 |
+
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Total number of prompts in realistic-sample-prompts.txt: </span><span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">6</span>\n",
|
197 |
+
"</pre>\n"
|
198 |
+
],
|
199 |
+
"text/plain": [
|
200 |
+
"\u001b[1mTotal number of prompts in realistic-sample-prompts.txt: \u001b[0m\u001b[1;36m6\u001b[0m\n"
|
201 |
+
]
|
202 |
+
},
|
203 |
+
"metadata": {},
|
204 |
+
"output_type": "display_data"
|
205 |
}
|
206 |
],
|
207 |
"source": [
|
208 |
+
"import os\n",
|
209 |
"import tiktoken\n",
|
210 |
"from rich.console import Console\n",
|
211 |
"from rich.table import Table\n",
|
212 |
"\n",
|
213 |
+
"\n",
|
214 |
"def count_tokens(text):\n",
|
215 |
" enc = tiktoken.get_encoding(\"cl100k_base\")\n",
|
216 |
" tokens = enc.encode(text)\n",
|
217 |
" return len(tokens)\n",
|
218 |
"\n",
|
219 |
+
"count_tokens(\"canine genitalia, knot\")\n",
|
220 |
"\n",
|
221 |
+
"console = Console()\n",
|
|
|
222 |
"\n",
|
223 |
+
"for file in os.listdir(\"E:\\\\training_dir\"):\n",
|
224 |
+
" if file.endswith(\"-sample-prompts.txt\"):\n",
|
225 |
+
" file_path = os.path.join(\"E:\\\\training_dir\", file)\n",
|
226 |
+
" console.print(f\"Processing file: {file_path}\")\n",
|
227 |
"\n",
|
228 |
+
" prompt_count = 0\n",
|
229 |
+
" with open(file_path, \"r\") as f:\n",
|
230 |
+
" lines = f.readlines()\n",
|
231 |
"\n",
|
232 |
+
" for line in lines:\n",
|
233 |
+
" if line.startswith(\"#\"):\n",
|
234 |
+
" continue\n",
|
235 |
+
" parts = line.split(\"--n\")\n",
|
236 |
+
" positive_prompt = parts[0].strip()\n",
|
237 |
+
" negative_prompt = parts[1].strip().split(\" --\")[0]\n",
|
238 |
"\n",
|
239 |
+
" positive_token_count = count_tokens(positive_prompt)\n",
|
240 |
+
" negative_token_count = count_tokens(negative_prompt)\n",
|
|
|
|
|
241 |
"\n",
|
242 |
+
" table = Table()\n",
|
243 |
+
" table.add_column(\"Prompt Type\", justify=\"left\")\n",
|
244 |
+
" table.add_column(\"Prompt\", justify=\"left\")\n",
|
245 |
+
" table.add_column(\"Token Count\", justify=\"right\")\n",
|
246 |
+
" table.add_row(\"[green]Positive[/green]\", positive_prompt, str(positive_token_count))\n",
|
247 |
+
" table.add_row(\"[red]Negative[/red]\", negative_prompt, str(negative_token_count))\n",
|
248 |
+
" console.print(table)\n",
|
249 |
"\n",
|
250 |
+
" if positive_token_count > 77:\n",
|
251 |
+
" console.print(\n",
|
252 |
+
" \"[bold red]Warning: Positive prompt token count exceeds 75.[/bold red]\"\n",
|
253 |
+
" )\n",
|
254 |
+
" prompt_count += 1\n",
|
255 |
"\n",
|
256 |
+
" console.print(f\"[bold]Total number of prompts in {file}: {prompt_count}[/bold]\")"
|
|
|
257 |
]
|
258 |
}
|
259 |
],
|
|
|
273 |
"name": "python",
|
274 |
"nbconvert_exporter": "python",
|
275 |
"pygments_lexer": "ipython3",
|
276 |
+
"version": "3.12.3"
|
277 |
}
|
278 |
},
|
279 |
"nbformat": 4,
|