k4d3
/

English
Not-For-All-Audiences
k4d3 commited on
Commit
9d0cfc4
β€’
1 Parent(s): 42ec939

Signed-off-by: Balazs Horvath <acsipont@gmail.com>

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": 4,
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\"><span style=\"font-style: italic\"> Prompt Analysis </span>\n",
12
- "┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┓\n",
 
 
 
 
 
 
 
 
 
 
 
 
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, β”‚ 57 β”‚\n",
16
- "β”‚ β”‚ female anthro kindred presenting, white pillow, bedroom, looking at viewer, β”‚ β”‚\n",
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
- "β”‚ Positive β”‚ score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β”‚ 57 β”‚\n",
28
- "β”‚ β”‚ female anthro kindred presenting, white pillow, bedroom, looking at viewer, β”‚ β”‚\n",
29
  "β”‚ β”‚ detailed background, amazing_background, scenery porn, realistic, photo β”‚ β”‚\n",
30
- "β”‚ Negative β”‚ low quality, worst quality, blurred background, blurry, simple background β”‚ 13 β”‚\n",
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\"><span style=\"font-style: italic\"> Prompt Analysis </span>\n",
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
- "β”‚ Positive β”‚ score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β”‚ 70 β”‚\n",
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
- "β”‚ Negative β”‚ low quality, worst quality, blurred background, blurry, simple background β”‚ 13 β”‚\n",
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\"><span style=\"font-style: italic\"> Prompt Analysis </span>\n",
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
- "β”‚ Positive β”‚ score_9, score_8_up, score_7_up, score_6_up, rating_explicit, source_furry, solo, β”‚ 73 β”‚\n",
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
- "β”‚ Negative β”‚ low quality, worst quality, blurred background, blurry, simple background β”‚ 13 β”‚\n",
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\"><span style=\"font-style: italic\"> Prompt Analysis </span>\n",
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
- "β”‚ Positive β”‚ score_9, score_8_up, score_7_up, score_6_up, rating_safe, source_furry, solo, β”‚ 74 β”‚\n",
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
- "β”‚ Negative β”‚ low quality, worst quality, blurred background, blurry, simple background β”‚ 13 β”‚\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
- "console = Console()\n",
142
  "\n",
143
- "with open(\"C:\\\\Users\\\\kade\\\\Desktop\\\\training_dir_staging\\\\sample-prompts.txt\", \"r\") as file:\n",
144
- " lines = file.readlines()\n",
145
  "\n",
146
- "for line in lines:\n",
147
- " if line.startswith(\"#\"):\n",
148
- " continue\n",
 
149
  "\n",
150
- " parts = line.split(\"--n\")\n",
151
- " positive_prompt = parts[0].strip()\n",
152
- " negative_prompt = parts[1].strip().split(\" --\")[0]\n",
153
  "\n",
154
- " positive_token_count = count_tokens(positive_prompt)\n",
155
- " negative_token_count = count_tokens(negative_prompt)\n",
 
 
 
 
156
  "\n",
157
- " table = Table(title=\"Prompt Analysis\")\n",
158
- " table.add_column(\"Prompt Type\", justify=\"left\")\n",
159
- " table.add_column(\"Prompt\", justify=\"left\")\n",
160
- " table.add_column(\"Token Count\", justify=\"right\")\n",
161
  "\n",
162
- " table.add_row(\"Positive\", positive_prompt, str(positive_token_count))\n",
163
- " table.add_row(\"Negative\", negative_prompt, str(negative_token_count))\n",
 
 
 
 
 
164
  "\n",
165
- " console.print(table)\n",
 
 
 
 
166
  "\n",
167
- " if positive_token_count > 77:\n",
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.2"
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,