Skip to content

Small script using Python to convert BackyardAI/Faraday PNG character cards to TavernAI PNG/JSON format

Notifications You must be signed in to change notification settings

EliseWindbloom/Convert-BackyardAI-card-to-TavernAI-png-json

Repository files navigation

Convert-BackyardAI-card-to-TavernAI-card-json

Update, Faraday.dev has officially rebranded as BackyardAI: https://backyard.ai/blog/rebranding-to-backyard

-Currently BackyardAI(previously known as Faraday) can export PNG character cards, however these cards seem to only work with BackyardAI and not with other character AI apps.

-These small scripts converts BackyardAI PNG character cards to TavernAI json files/TavernAI character card PNGs, enabling compatibility and the ability to share your cards with most other character AI apps.

Faraday video installation guide (NSFW)

Features

  • Converts BackyardAI PNG character cards to TavernAI JSON and PNG formats

Requirments

BackyardAI (App that allows you to chat with AI Characters Offline)

Python

Setup Python (outputs a TavernAI PNG file and TavernAI JSON file)

  1. Download and install Python. then run this command on command line to install pillow pip install "Pillow>=10.1.0"
  2. Make or load a character in BackyardAI, then go to the Home area -> click on the 3 vertical dots next to the card you want -> click on "Export To PNG" like this
  3. Download this repository by clicking on Code -> Download zip, then extract on your pc.
  4. Drag-n-Drop your BackyardAI(Faraday) png to "_BackyardAI_To_TavernAI (drag & drop backyardAI png here).bat" to convert to TarvernAI json and TarvernAI png character card.
    • alternately, run python backyard_to_tavern.py <file_path> on command line a single backyardAI png to TarvernAI png/json.
    • or you can try "faraday2tavern.py" in unused folder, though this might only output a json file and probably won't work on most faraday pngs.
    • or you can try "BackyardAI card to TavernAI json v4.au3" in unused folder which requires Autoit, though it's been depericated, only generates a json on microsoft windows and doesn't work on most faraday pngs.

Installation

  1. Download and install Python 3.10 or higher, then run this command on command line pip install "Pillow>=10.1.0"
  2. Download this repo and extract it.

Usage

Method 1: Drag and Drop (Windows)

Simply drag and drop your BackyardAI PNG onto "_BackyardAI_To_TavernAI (drag & drop backyardAI png here).bat"

Method 2: Command Line

For single file conversion:

python backyard_to_tavern.py <path_to_png>

Output

The script generates:

  1. A TavernAI-compatible PNG character card
  2. A TavernAI JSON file with character data

About

Small script using Python to convert BackyardAI/Faraday PNG character cards to TavernAI PNG/JSON format

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published