k4d3 commited on
Commit
8ccf3ec
β€’
1 Parent(s): 84f3a3d

Signed-off-by: Balazs Horvath <[email protected]>

Files changed (27) hide show
  1. README.md +1 -2
  2. dataset_tools/Convert WebP to PNG.ipynb +8 -4
  3. dataset_tools/Escape Parentheses.ipynb +121 -7
  4. ponyxl_loras/jex-v2e400.safetensors +3 -0
  5. training_images/jex_000100_00_20240420130948_1.png +3 -0
  6. training_images/jex_000100_01_20240420130949_1.png +3 -0
  7. training_images/jex_000200_00_20240420132902_1.png +3 -0
  8. training_images/jex_000200_01_20240420132903_1.png +3 -0
  9. training_images/jex_000300_00_20240420134752_1.png +3 -0
  10. training_images/jex_000300_01_20240420134754_1.png +3 -0
  11. training_images/jex_000400_00_20240420140702_1.png +3 -0
  12. training_images/jex_000400_01_20240420140704_1.png +3 -0
  13. training_images/{v4_000100_00_20240415120836_1.png β†’ realistic-v4_000100_00_20240415120836_1.png} +0 -0
  14. training_images/{v4_000100_01_20240415120835_1.png β†’ realistic-v4_000100_01_20240415120835_1.png} +0 -0
  15. training_images/{v4_000100_02_20240415121037_1.png β†’ realistic-v4_000100_02_20240415121037_1.png} +0 -0
  16. training_images/{v4_000200_00_20240415132848_1.png β†’ realistic-v4_000200_00_20240415132848_1.png} +0 -0
  17. training_images/{v4_000200_01_20240415132847_1.png β†’ realistic-v4_000200_01_20240415132847_1.png} +0 -0
  18. training_images/{v4_000200_02_20240415133047_1.png β†’ realistic-v4_000200_02_20240415133047_1.png} +0 -0
  19. training_images/{v4_000300_00_20240415144838_1.png β†’ realistic-v4_000300_00_20240415144838_1.png} +0 -0
  20. training_images/{v4_000300_01_20240415144838_1.png β†’ realistic-v4_000300_01_20240415144838_1.png} +0 -0
  21. training_images/{v4_000300_02_20240415145038_1.png β†’ realistic-v4_000300_02_20240415145038_1.png} +0 -0
  22. training_images/{v4_000400_00_20240415160834_1.png β†’ realistic-v4_000400_00_20240415160834_1.png} +0 -0
  23. training_images/{v4_000400_01_20240415160833_1.png β†’ realistic-v4_000400_01_20240415160833_1.png} +0 -0
  24. training_images/{v4_000400_02_20240415161035_1.png β†’ realistic-v4_000400_02_20240415161035_1.png} +0 -0
  25. training_images/{v4_000500_00_20240415172857_1.png β†’ realistic-v4_000500_00_20240415172857_1.png} +0 -0
  26. training_images/{v4_000500_01_20240415172857_1.png β†’ realistic-v4_000500_01_20240415172857_1.png} +0 -0
  27. training_images/{v4_000500_02_20240415173057_1.png β†’ realistic-v4_000500_02_20240415173057_1.png} +0 -0
README.md CHANGED
@@ -29,7 +29,6 @@ The Yiff Toolkit is a comprehensive set of tools designed to enhance your creati
29
  - [Create the `training_dir` Directory](#create-the-training_dir-directory)
30
  - [Grabber](#grabber)
31
  - [Manual Method](#manual-method)
32
- - [LoRA Training Guide](#lora-training-guide)
33
  - [Installation Tips](#installation-tips)
34
  - [Pony Training](#pony-training)
35
  - [Download Pony in Diffusers Format](#download-pony-in-diffusers-format)
@@ -257,7 +256,7 @@ This will put a link to the JSON next to the download button on e621.net and e6a
257
 
258
  ---
259
 
260
- ## LoRA Training Guide
261
 
262
  ### Installation Tips
263
 
 
29
  - [Create the `training_dir` Directory](#create-the-training_dir-directory)
30
  - [Grabber](#grabber)
31
  - [Manual Method](#manual-method)
 
32
  - [Installation Tips](#installation-tips)
33
  - [Pony Training](#pony-training)
34
  - [Download Pony in Diffusers Format](#download-pony-in-diffusers-format)
 
256
 
257
  ---
258
 
259
+ ****## LoRA Training Guide
260
 
261
  ### Installation Tips
262
 
dataset_tools/Convert WebP to PNG.ipynb CHANGED
@@ -19,7 +19,9 @@
19
  "name": "stdout",
20
  "output_type": "stream",
21
  "text": [
22
- "Converted C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\iee8nodoji731.webp to C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\iee8nodoji731.png\n"
 
 
23
  ]
24
  }
25
  ],
@@ -42,10 +44,12 @@
42
  " except Exception as e:\n",
43
  " print(f\"Error converting {webp_path}: {e}\")\n",
44
  "\n",
45
- "#directory = r'E:\\training_dir'\n",
46
  "directory = r'C:\\Users\\kade\\Desktop\\training_dir_staging'\n",
47
- "#directory = r'C:\\Users\\kade\\Desktop\\ayaya'\n",
48
- "convert_webp_to_png(directory)"
 
 
 
49
  ]
50
  }
51
  ],
 
19
  "name": "stdout",
20
  "output_type": "stream",
21
  "text": [
22
+ "Converted C:\\Users\\kade\\Desktop\\ayaya\\497f176b92d00fa048723b2df8caa0148ffdf8a7_high.webp to C:\\Users\\kade\\Desktop\\ayaya\\497f176b92d00fa048723b2df8caa0148ffdf8a7_high.png\n",
23
+ "Converted E:\\training_dir\\_\\2Va3uwI-cQCarU2e7Bz30MSWVDYtejU0ByigESJ0h2A.webp to E:\\training_dir\\_\\2Va3uwI-cQCarU2e7Bz30MSWVDYtejU0ByigESJ0h2A.png\n",
24
+ "Converted E:\\training_dir\\_\\iee8nodoji731.webp to E:\\training_dir\\_\\iee8nodoji731.png\n"
25
  ]
26
  }
27
  ],
 
44
  " except Exception as e:\n",
45
  " print(f\"Error converting {webp_path}: {e}\")\n",
46
  "\n",
 
47
  "directory = r'C:\\Users\\kade\\Desktop\\training_dir_staging'\n",
48
+ "convert_webp_to_png(directory)\n",
49
+ "directory = r'C:\\Users\\kade\\Desktop\\ayaya'\n",
50
+ "convert_webp_to_png(directory)\n",
51
+ "#directory = r'E:\\training_dir'\n",
52
+ "#convert_webp_to_png(directory)"
53
  ]
54
  }
55
  ],
dataset_tools/Escape Parentheses.ipynb CHANGED
@@ -7,7 +7,11 @@
7
  "## Escape parentheses\n",
8
  "----\n",
9
  "\n",
10
- "Recursively escape unescaped parentheses in all `.txt` files within the specified directory and its subdirectories. "
 
 
 
 
11
  ]
12
  },
13
  {
@@ -20,13 +24,21 @@
20
  "import re\n",
21
  "\n",
22
  "def escape_parentheses(file_path):\n",
23
- " with open(file_path, 'r') as file:\n",
24
  " content = file.read()\n",
 
 
25
  " # Escape unescaped opening parentheses\n",
26
- " content = re.sub(r'(?<!\\\\)(\\()', r'\\\\\\1', content)\n",
27
  " # Escape unescaped closing parentheses\n",
28
- " content = re.sub(r'(?<!\\\\)(\\))', r'\\\\\\1', content)\n",
29
- " with open(file_path, 'w') as file:\n",
 
 
 
 
 
 
30
  " file.write(content)\n",
31
  "\n",
32
  "def process_directory(directory):\n",
@@ -35,11 +47,113 @@
35
  " if file.endswith(\".txt\"):\n",
36
  " file_path = os.path.join(root, file)\n",
37
  " escape_parentheses(file_path)\n",
38
- " # Recurse into subdirectories\n",
39
  " for dir in dirs:\n",
40
  " process_directory(os.path.join(root, dir))\n",
41
  "\n",
42
- "directory_path = r'C:\\Users\\kade\\Desktop\\training_dir_staging'\n",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  "process_directory(directory_path)"
44
  ]
45
  }
 
7
  "## Escape parentheses\n",
8
  "----\n",
9
  "\n",
10
+ "This script is designed to process a directory and its subdirectories for text files. For each text file, it reads the content and checks for any unescaped parentheses. If it finds any, it escapes them and writes the modified content back to the file. If any modifications are made, it prints a warning message along with the original and modified content. The directory to be processed is specified by the `directory_path` variable. In this case, it is set to `C:\\Users\\kade\\Desktop\\training_dir_staging`. The script starts processing from this directory. \n",
11
+ "\n",
12
+ "The **`escape_parentheses(file_path)`** function takes a file path as an argument, reads the file content, and checks for unescaped parentheses. It uses regular expressions to find unescaped parentheses and escapes them. If the content is modified, it prints a warning message along with the original and modified content. Then, it writes the modified content back to the file.\n",
13
+ "\n",
14
+ "The **`process_directory(directory)`** function takes a directory path as an argument and processes it recursively. It uses the `os.walk()` function to iterate over the directory, its subdirectories, and files. For each text file (files ending with `.txt`), it calls the `escape_parentheses(file_path)` function to escape unescaped parentheses. It also processes each subdirectory in the same way. "
15
  ]
16
  },
17
  {
 
24
  "import re\n",
25
  "\n",
26
  "def escape_parentheses(file_path):\n",
27
+ " with open(file_path, \"r\") as file:\n",
28
  " content = file.read()\n",
29
+ " original_content = content\n",
30
+ "\n",
31
  " # Escape unescaped opening parentheses\n",
32
+ " content = re.sub(r\"(?<!\\\\)(\\\\*)(\\\\()\", r\"\\1\\\\\\2\", content)\n",
33
  " # Escape unescaped closing parentheses\n",
34
+ " content = re.sub(r\"(?<!\\\\)(\\\\*)(\\\\))\", r\"\\1\\\\\\2\", content)\n",
35
+ "\n",
36
+ " if content != original_content:\n",
37
+ " print(f\"Warning: File '{file_path}' was modified.\")\n",
38
+ " print(f\"Original: {original_content}\")\n",
39
+ " print(f\"Modified: {content}\")\n",
40
+ "\n",
41
+ " with open(file_path, \"w\") as file:\n",
42
  " file.write(content)\n",
43
  "\n",
44
  "def process_directory(directory):\n",
 
47
  " if file.endswith(\".txt\"):\n",
48
  " file_path = os.path.join(root, file)\n",
49
  " escape_parentheses(file_path)\n",
 
50
  " for dir in dirs:\n",
51
  " process_directory(os.path.join(root, dir))\n",
52
  "\n",
53
+ "directory_path = r\"E:\\training_dir\"\n",
54
+ "# directory_path = r\"C:\\Users\\kade\\Desktop\\training_dir_staging\"\n",
55
+ "process_directory(directory_path)"
56
+ ]
57
+ },
58
+ {
59
+ "cell_type": "markdown",
60
+ "metadata": {},
61
+ "source": [
62
+ "## Needs Testing\n",
63
+ "\n",
64
+ "---"
65
+ ]
66
+ },
67
+ {
68
+ "cell_type": "code",
69
+ "execution_count": 6,
70
+ "metadata": {},
71
+ "outputs": [
72
+ {
73
+ "name": "stdout",
74
+ "output_type": "stream",
75
+ "text": [
76
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\1vw3q7q5knu71.txt' was modified.\n",
77
+ "Original: jex, dharrel, feathered ears, rating_safe, anthro, clothing, solo, outside, clothed, 3d \\(artwork\\), detailed background, fur, water, black fur, white fur, white body, black body, feet, underwater, in the image anthro male dharrel jex a species characterized by its white and black furred head is depicted in a solo adventure underwater., this canine-like mammal is clothed in dark bottomwear and topwear in the 3d artwork., the jexÒ€ℒs dominantly white fur contrasts with the dark surroundings making it a focal point in the scene., the detailed background reveals ancient city submerged in water its ruins hinting at a forgotten past., small fish and aquatic plants add life to the scene their presence illuminated by the light filtering through the water., the feet of the dharrel are visible suggesting movement and exploration., he has small black and white feathers on his ears., open eyes, purple eyes, there are small air bubbles around the character and a few big ones in the scene.\n",
78
+ "Modified: jex, dharrel, feathered ears, rating_safe, anthro, clothing, solo, outside, clothed, 3d \\\\(artwork\\\\), detailed background, fur, water, black fur, white fur, white body, black body, feet, underwater, in the image anthro male dharrel jex a species characterized by its white and black furred head is depicted in a solo adventure underwater., this canine-like mammal is clothed in dark bottomwear and topwear in the 3d artwork., the jexÒ€ℒs dominantly white fur contrasts with the dark surroundings making it a focal point in the scene., the detailed background reveals ancient city submerged in water its ruins hinting at a forgotten past., small fish and aquatic plants add life to the scene their presence illuminated by the light filtering through the water., the feet of the dharrel are visible suggesting movement and exploration., he has small black and white feathers on his ears., open eyes, purple eyes, there are small air bubbles around the character and a few big ones in the scene.\n",
79
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\2h164c8us2b61.txt' was modified.\n",
80
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, anthro, plant, mammal, outside, clothing, clothed, detailed background, fur, white body, 3d \\(artwork\\), water, male, white fur, black fur, black body, In this 3D artwork a solo anthro male dharrel jex stands outside his black body and white fur contrasting sharply against the detailed background., He is clothed in dark purple topwear that complements his mammal features with fur that glistens from the surrounding water., The scene is set amidst vibrant plants and the characterÒ€ℒs white body stands out., open eyes, purple eyes, \n",
81
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, anthro, plant, mammal, outside, clothing, clothed, detailed background, fur, white body, 3d \\\\(artwork\\\\), water, male, white fur, black fur, black body, In this 3D artwork a solo anthro male dharrel jex stands outside his black body and white fur contrasting sharply against the detailed background., He is clothed in dark purple topwear that complements his mammal features with fur that glistens from the surrounding water., The scene is set amidst vibrant plants and the characterÒ€ℒs white body stands out., open eyes, purple eyes, \n",
82
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\3yjns0br1xv31.txt' was modified.\n",
83
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, mammal, outside, clothed, fur, 3d \\(artwork\\), beverage, white body, topwear, white fur, container, cup, detailed background, coffee, male, holding object\n",
84
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, mammal, outside, clothed, fur, 3d \\\\(artwork\\\\), beverage, white body, topwear, white fur, container, cup, detailed background, coffee, male, holding object\n",
85
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\8174w4ticq431.txt' was modified.\n",
86
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, outside, male, detailed background, water, clothed, 3d \\(artwork\\), topwear, fur, pants, bottomwear, tail, white body\n",
87
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, outside, male, detailed background, water, clothed, 3d \\\\(artwork\\\\), topwear, fur, pants, bottomwear, tail, white body\n",
88
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\br9aqfq4fzn31.txt' was modified.\n",
89
+ "Original: jex, dharrel, feathered ears, solo, rating_safe, 3d \\(artwork\\), mammal, anthro, clothing, hoodie, furniture, looking at viewer, male, clothed, purple eyes, bed, inside, topwear,\n",
90
+ "Modified: jex, dharrel, feathered ears, solo, rating_safe, 3d \\\\(artwork\\\\), mammal, anthro, clothing, hoodie, furniture, looking at viewer, male, clothed, purple eyes, bed, inside, topwear,\n",
91
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\dhar_sleeps_2.txt' was modified.\n",
92
+ "Original: jex, dharrel, feathered ears, lying on bed, solo, rating_safe, 3d \\(artwork\\), mammal, anthro, furniture, looking at viewer, male, clothed, closed eyes, bed, inside\n",
93
+ "Modified: jex, dharrel, feathered ears, lying on bed, solo, rating_safe, 3d \\\\(artwork\\\\), mammal, anthro, furniture, looking at viewer, male, clothed, closed eyes, bed, inside\n",
94
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\fbhwa0y9w4s21.txt' was modified.\n",
95
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, anthro, outside, clothing, hoodie, fur, clothed, detailed background, 3d \\(artwork\\), tree, topwear, night, male, water\n",
96
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, anthro, outside, clothing, hoodie, fur, clothed, detailed background, 3d \\\\(artwork\\\\), tree, topwear, night, male, water\n",
97
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\freg1n3a2ko21.txt' was modified.\n",
98
+ "Original: jex, dharrel, feathered ears, anthro, duo, 3d \\(artwork\\), rating_safe, night, male, outside, kissing, clothing, hair, water, green body, clothed, fur, eyes closed, green hair, felid, female, moon, plant, green fur\n",
99
+ "Modified: jex, dharrel, feathered ears, anthro, duo, 3d \\\\(artwork\\\\), rating_safe, night, male, outside, kissing, clothing, hair, water, green body, clothed, fur, eyes closed, green hair, felid, female, moon, plant, green fur\n",
100
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\hxrxro437u461.txt' was modified.\n",
101
+ "Original: jex, dharrel,feathered ears, rating_safe, solo, mammal, anthro, clothing, purple eyes, city, clothed, fur, 3d \\(artwork\\), detailed background, eyewear, horn, white body, male, looking at viewer, white fur, night, fingers, feathered ears\n",
102
+ "Modified: jex, dharrel,feathered ears, rating_safe, solo, mammal, anthro, clothing, purple eyes, city, clothed, fur, 3d \\\\(artwork\\\\), detailed background, eyewear, horn, white body, male, looking at viewer, white fur, night, fingers, feathered ears\n",
103
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\iee8nodoji731.txt' was modified.\n",
104
+ "Original: jex, dharrel, rating_safe, solo, mammal, anthro, clothing, purple eyes, clothed, fur, detailed background, eyewear, white body, male, looking at viewer, white fur, fingers, holding object, feathered ears, 3d \\(artwork\\)\n",
105
+ "Modified: jex, dharrel, rating_safe, solo, mammal, anthro, clothing, purple eyes, clothed, fur, detailed background, eyewear, white body, male, looking at viewer, white fur, fingers, holding object, feathered ears, 3d \\\\(artwork\\\\)\n",
106
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\iqs60ikmcgw21.txt' was modified.\n",
107
+ "Original: jex, dharrel, feathered ears, rating_safe, anthro, 3d \\(artwork\\), outside, female, hair, detailed background, tree, water, night, clothing, forest, plant, fur, lamp, solo, lantern, male, clothed\n",
108
+ "Modified: jex, dharrel, feathered ears, rating_safe, anthro, 3d \\\\(artwork\\\\), outside, female, hair, detailed background, tree, water, night, clothing, forest, plant, fur, lamp, solo, lantern, male, clothed\n",
109
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\jn9rvqwuya241.txt' was modified.\n",
110
+ "Original: jex, dharrel, feathered ears, blep, solo, rating_safe, clothing, mammal, hoodie, anthro, fur, clothed, 3d \\(artwork\\), topwear, looking at viewer, outside, tongue, white body, white fur, male\n",
111
+ "Modified: jex, dharrel, feathered ears, blep, solo, rating_safe, clothing, mammal, hoodie, anthro, fur, clothed, 3d \\\\(artwork\\\\), topwear, looking at viewer, outside, tongue, white body, white fur, male\n",
112
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\mpcr44i6q0z21.txt' was modified.\n",
113
+ "Original: jex, dharrel, feathered ears, solo, rating_safe, anthro, underwater, clothing, water, male, topless, clothed, hair, fur, 3d \\(artwork\\)\n",
114
+ "Modified: jex, dharrel, feathered ears, solo, rating_safe, anthro, underwater, clothing, water, male, topless, clothed, hair, fur, 3d \\\\(artwork\\\\)\n",
115
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\promising-weather-second-life-v0-wdbxcxkftsh81.txt' was modified.\n",
116
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, clothing, anthro, water, outside, 3d \\(artwork\\), clothed, detailed background, male, fur, standing, topwear, plant, bottomwear, tree, pants, white fur, river, white body\n",
117
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, clothing, anthro, water, outside, 3d \\\\(artwork\\\\), clothed, detailed background, male, fur, standing, topwear, plant, bottomwear, tree, pants, white fur, river, white body\n",
118
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\rdjho7a12w781.txt' was modified.\n",
119
+ "Original: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, mammal, fur, clothed, blurred background, purple eyes, topwear, 3d \\(artwork\\), beverage, outside, holding object, jacket, hair, male, black hair\n",
120
+ "Modified: jex, dharrel, feathered ears, rating_safe, solo, anthro, clothing, mammal, fur, clothed, blurred background, purple eyes, topwear, 3d \\\\(artwork\\\\), beverage, outside, holding object, jacket, hair, male, black hair\n",
121
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\s0v2nbu28m031.txt' was modified.\n",
122
+ "Original: jex, dharrel, rating_safe, anthro, clothing, solo, male, clothed, fur, topwear, 3d \\(artwork\\), bottomwear, shirt, pants, hair, group, white fur, white body, crowd\n",
123
+ "Modified: jex, dharrel, rating_safe, anthro, clothing, solo, male, clothed, fur, topwear, 3d \\\\(artwork\\\\), bottomwear, shirt, pants, hair, group, white fur, white body, crowd\n",
124
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\viicura4r3u51.txt' was modified.\n",
125
+ "Original: jex, feathered ears, dharrel, rating_safe, solo, mammal, clothing, anthro, outside, fur, clothed, 3d \\(artwork\\), detailed background, white fur, topwear, red clothing, hoodie, white body, male, day, tree, red topwear\n",
126
+ "Modified: jex, feathered ears, dharrel, rating_safe, solo, mammal, clothing, anthro, outside, fur, clothed, 3d \\\\(artwork\\\\), detailed background, white fur, topwear, red clothing, hoodie, white body, male, day, tree, red topwear\n",
127
+ "Warning: File 'C:\\Users\\kade\\Desktop\\training_dir_staging\\1_dharrel\\z9122r3siwm31.txt' was modified.\n",
128
+ "Original: jex, dharrel, rating_safe, solo, anthro, 3d \\(artwork\\), clothing, fur, clothed, eyewear, male, glasses, topwear, white fur, photo background, blurred background, feathered ears\n",
129
+ "Modified: jex, dharrel, rating_safe, solo, anthro, 3d \\\\(artwork\\\\), clothing, fur, clothed, eyewear, male, glasses, topwear, white fur, photo background, blurred background, feathered ears\n"
130
+ ]
131
+ }
132
+ ],
133
+ "source": [
134
+ "import re\n",
135
+ "from pathlib import Path\n",
136
+ "\n",
137
+ "def escape_parentheses(file_path):\n",
138
+ " with open(file_path, \"r\") as file:\n",
139
+ " content = file.read()\n",
140
+ " original_content = content\n",
141
+ " # Escape unescaped opening parentheses\n",
142
+ " content = re.sub(r\"(?<!\\\\)(?<!\\\\\\\\)(\\\\\\\\\\*)\\\\(\", r\"\\\\1\\\\\\\\(\", content)\n",
143
+ " # Escape unescaped closing parentheses\n",
144
+ " content = re.sub(r\"(?<!\\\\)(?<!\\\\\\\\)(\\\\\\\\\\*)\\\\)\", r\"\\\\1\\\\\\\\)\", content)\n",
145
+ " if content != original_content:\n",
146
+ " print(f\"Warning: File '{file_path}' was modified.\")\n",
147
+ " print(f\"Original: {original_content}\")\n",
148
+ " print(f\"Modified: {content}\")\n",
149
+ " with open(file_path, \"w\") as file:\n",
150
+ " file.write(content)\n",
151
+ "\n",
152
+ "def process_directory(directory):\n",
153
+ " for file_path in Path(directory).rglob(\"*.txt\"):\n",
154
+ " escape_parentheses(str(file_path))\n",
155
+ "\n",
156
+ "directory_path = r\"C:\\Users\\kade\\Desktop\\training_dir_staging\"\n",
157
  "process_directory(directory_path)"
158
  ]
159
  }
ponyxl_loras/jex-v2e400.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afe6547307a42a853f9cf14bd475fa9b556fe2be600524ef6d17d473b5e3f22c
3
+ size 240576848
training_images/jex_000100_00_20240420130948_1.png ADDED

Git LFS Details

  • SHA256: 0cfdd1d9fc1cc0bc94ce302a9d7785f1e9b3ee42e8b949292daf9af953f16d5c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.44 MB
training_images/jex_000100_01_20240420130949_1.png ADDED

Git LFS Details

  • SHA256: fc59a01f28422bc0b775588a7e14e75de2b2ab8012213a2c2deb02c2064b3b9d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.73 MB
training_images/jex_000200_00_20240420132902_1.png ADDED

Git LFS Details

  • SHA256: ddb0365e9c84c43f762b0f2c489a0781567eae76f5a9aa5a342bef7bc6c8d188
  • Pointer size: 132 Bytes
  • Size of remote file: 1.52 MB
training_images/jex_000200_01_20240420132903_1.png ADDED

Git LFS Details

  • SHA256: a4504dbf8796e44f858246ac416b12af4e8debd1b9fe0a398b95601c90c8c1b3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.7 MB
training_images/jex_000300_00_20240420134752_1.png ADDED

Git LFS Details

  • SHA256: eb4bc2b962321a9f7960b38110fc84d0211bd5e3bb8cd28609dc87e63086180d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
training_images/jex_000300_01_20240420134754_1.png ADDED

Git LFS Details

  • SHA256: 3c385afbdccfc1a95904beef7287c6cf497c6e9373a648f69a484eca42077316
  • Pointer size: 132 Bytes
  • Size of remote file: 1.61 MB
training_images/jex_000400_00_20240420140702_1.png ADDED

Git LFS Details

  • SHA256: 63c03b4fca5f2a9203b4b5d4b034f965b765addb6a76fb00fc249fce5374e0fb
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
training_images/jex_000400_01_20240420140704_1.png ADDED

Git LFS Details

  • SHA256: ad13d34e4f393a80def1efb5ea65744dee9382480160aa5011adc186f79d5305
  • Pointer size: 132 Bytes
  • Size of remote file: 1.62 MB
training_images/{v4_000100_00_20240415120836_1.png β†’ realistic-v4_000100_00_20240415120836_1.png} RENAMED
File without changes
training_images/{v4_000100_01_20240415120835_1.png β†’ realistic-v4_000100_01_20240415120835_1.png} RENAMED
File without changes
training_images/{v4_000100_02_20240415121037_1.png β†’ realistic-v4_000100_02_20240415121037_1.png} RENAMED
File without changes
training_images/{v4_000200_00_20240415132848_1.png β†’ realistic-v4_000200_00_20240415132848_1.png} RENAMED
File without changes
training_images/{v4_000200_01_20240415132847_1.png β†’ realistic-v4_000200_01_20240415132847_1.png} RENAMED
File without changes
training_images/{v4_000200_02_20240415133047_1.png β†’ realistic-v4_000200_02_20240415133047_1.png} RENAMED
File without changes
training_images/{v4_000300_00_20240415144838_1.png β†’ realistic-v4_000300_00_20240415144838_1.png} RENAMED
File without changes
training_images/{v4_000300_01_20240415144838_1.png β†’ realistic-v4_000300_01_20240415144838_1.png} RENAMED
File without changes
training_images/{v4_000300_02_20240415145038_1.png β†’ realistic-v4_000300_02_20240415145038_1.png} RENAMED
File without changes
training_images/{v4_000400_00_20240415160834_1.png β†’ realistic-v4_000400_00_20240415160834_1.png} RENAMED
File without changes
training_images/{v4_000400_01_20240415160833_1.png β†’ realistic-v4_000400_01_20240415160833_1.png} RENAMED
File without changes
training_images/{v4_000400_02_20240415161035_1.png β†’ realistic-v4_000400_02_20240415161035_1.png} RENAMED
File without changes
training_images/{v4_000500_00_20240415172857_1.png β†’ realistic-v4_000500_00_20240415172857_1.png} RENAMED
File without changes
training_images/{v4_000500_01_20240415172857_1.png β†’ realistic-v4_000500_01_20240415172857_1.png} RENAMED
File without changes
training_images/{v4_000500_02_20240415173057_1.png β†’ realistic-v4_000500_02_20240415173057_1.png} RENAMED
File without changes