×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
5

How to hack the worker for HordeAI to store what it generates for other users

submitted by puremadness to AI 6 monthsOct 21, 2024 05:36:56 ago (+5/-0)     (github.com)

https://github.com/Haidra-Org/AI-Horde/blob/main/README_StableHorde.md#joining-the-horde

Ok, so the horde thing is basically stable diffusion but the users pay kudos to workers who generate the images.
idk wtf you can do with kudos other than use them for hordeAI, so probably useless.

Anyway you can get them for free by letting your machine act as a worker.
on the horde FAQ, they mention its technically possible with some "know how" for a worker to save those images.

So here's how to do it:
- follow link, install the worker, run all the python shit to set it up
- register (no email needed, just pick a name) and get a api key
- pop that key into the config xml file
- follow the configuration section to determine what to allow,etc
- get it up and running
- ctrl-c to stop it

find the file: horde_worker_regen\process_management\process_manager.py
- open it text editor
- goto line 12, get a new line and enter this:

from time import gmtime, strftime

- goto line 2412, get a new line and enter this:

jb = strftime("%Y%m%d_%H-%M-%S", gmtime())
image_as_pil.save("hordespy\\"+jb+"_buffer.webp",format="WebP",quality=95,method=6)
logger.info(f"||||||Stored -> hordespy\\{jb}{'_buffer.webp'}")`

- start the worker back up
- create the subfolder "hordespy"
- watch it fill up with images generated by users of the horde ai network


15 comments block

I respect that