百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

ganbreeder

> 编程语言
开源

使用 biggan 编辑和共享图像

1.3K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 biggan 编辑和共享图像

Ganbreeder

Ganbreeder is a collaborative art tool for discovering images. Images are 'bred' by having children, mixing with other images and being shared via their URL. This is an experiment in using breeding + sharing as methods of exploring high complexity spaces. GAN's are simply the engine enabling this. Ganbreeder is very similar to, and named after, Picbreeder. It is also inspired by an earlier project of mine Facebook Graffiti which demonstrated the creative capacity of crowds.Ganbreeder uses these models.

This code was made in a weekend and hasn't been cleaned up or documented yet. There are also improvements to make to scalability.

Pull request are more than welcome :)

How to use

Prerequisites

  • Install Python 3 + pip (for the GAN server)
  • Install NodeJS + npm (for the frontend)
  • Install a PostgreSQL server

Launch the GAN server

cd gan_server
# Install dependencies
pip install -r requirements.txt
# And go...
python server.py

Your GAN server is available at http://localhost:5000/

Configure the frontend

For quick hacking, if you have Docker at your disposal, you can spawn a PostgreSQL database like so:

docker run -p 5432:5432 --name ganbreederpostgres -e POSTGRES_PASSWORD=ganbreederpostgres -d postgres

With that simple scenario, the database and user would be postgres and the password would be ganbreederpostgres

Copy the file server/example_secrets.js to secrets.js and modify it to fit your environment.

Launch the frontend

cd server
npm install
# Create the database structure
node_modules/knex/bin/cli.js migrate:latest
# Generate the first images
node make_randoms.js
# Generate a cache of image keys for the front page (do it every time you want to update the front page)
node updatecache.js
# And go...
node server.js

Your frontend is available at http://localhost:8888/

docker-compose setup

Make sure that docker and docker-compose are installed.

Start the containers:

docker-compose up

Your frontend is available at http://localhost:8888/, backend at http://localhost:5000/. Initial backend setup can take few minutes.

If this is the first time you are running the project you might want to generate some random images:

docker-compose exec server node make_randoms.js

Restart only frontend server (to avoid backend initialization wait):

docker-compose restart server

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言