Skip to content

A Gradio app for creating bros face pics using BroGAN

Notifications You must be signed in to change notification settings

jtabox/adversarial-bros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👨🏻👨🏼👨🏽👨🏾👨🏿 Adversarial Bros 👨🏿👨🏾👨🏽👨🏼👨🏻

A simple (my ass) Gradio app that generates face photos of delicious imaginary bros using BroGAN, a StyleGAN3 model.

It can generate and save single or bulk generate multiple images with different seeds and other settings.

I'm also planning some extra functionality for a later point in the future (if I don't get bored and abandon this), see ToDos below.

Info:
  • I wrote this because I wanted to be able to use BroGAN without firing up A1111 and use the relevant extension for it, and without having to use the terminal and cli. Then I got interested in getting some more experience in Gradio and Python programming in general, so I kinda spent more time with it.
  • It's still an exceptionally messy, probably buggy patchwork of mostly other people's code and a bit of my own (= I asked various LLMs to do stuff). But it somehow works?

Caution: It executes pickle code because it has to, and generally I give literally zero guarantees about the whole thing's safety and proper behaviour. Likewise I accept zero responsibility. So please read the code and use at your own risk, or don't.

Requirements:
  • An NVIDIA card with CUDA support (can work with CPU if you change stuff in the code).
  • A Python environment (I used 3.10 but others may work I guess) with uuuuh... gradio, torch, pickle and pillow and... diffusers? I might've completely failed to take a note of the packages I installed, so I don't remember all of them. Install them if it complains.
  • It'll need to compile some CUDA binaries at some point, so you need nvcc and Visual Studio Build Tools.
  • The whole thing was developed and run on Windows 11 but it should be relatively easy to run in Linux with minimal adaptations. I think.
Usage:
ToDos:
  • Implement CodeFormer integration so the images can be upscaled from the default 256x256 px.
Credits:

About

A Gradio app for creating bros face pics using BroGAN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published