Import Tavern AI Characters #1227
El-Hondo
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I made a script to convert or batch convert Tavern AI characters into textgen. You will need the PNG character card. The webp version does not work.
What do you think?
Usage:
<input_path>
: Required. Path to the input PNG file or a pattern (using wildcards) to match multiple PNG files.[<output_path>]
: Optional. Directory path where you want to save the output JSON files and copied PNG files. If not provided, the output files will be saved in the same directory as the input files.Examples:
To process a single PNG file and save the output files in the same directory as the input file:
To process multiple PNG files using a pattern and save the output files in a specified output directory:
python tavern2textgen.py /path/to/input_files/*.png /path/to/output_directory/
To process a single PNG file and save the output files in a specified output directory:
Now all you have to do is to copy the images and json to your charater folder in textgen. Normally
\text-generation-webui\characters
Here is the code
Have fun!
Beta Was this translation helpful? Give feedback.
All reactions