Connect RenPy with Stable Diffusion via ComfyUI
https://github.com/unLomTrois/Confetti
It is a Python script to connect your RenPy visual novels to Stable Diffusion via ComfyUI workflows
What is a "workflow"? It is a file with step-by-step instructions for Stable Diffusion on what image you want to generate
The idea is simple:
You prepare workflows for ComfyUI, put them in the game/workflows directory
Then in your renpy script files you call the generate function with the name of this workflow in a background thread
Confetti sends this workflow to the ComfyUI server (local or global)
ComfyUI generates image and sends it back
Confetti stores this image in the game/images folder
You show this image to a player
You need websocket-client
This script uses websocket-client package to communicate with ComfyUI server. So you need to pack this package in your game:
pip install --target game/python-packages websocket-client
Connect RenPy with Stable Diffusion(Сonfetti)
Forum rules
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Do not post questions here!
This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Connect RenPy with Stable Diffusion(Сonfetti)
Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Sawa - a game of the Drow Nation
Honest Critique
Poses in visual novels, or how to hold a character properly in the frame
Help save articles to the webarchive. [/color]
Who is online
Users browsing this forum: No registered users