GithubHelp home page GithubHelp logo

eoduniyi / cgen-dlang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cgen-dlang/cgen-dlang

0.0 1.0 0.0 449 KB

An Evolutionary Approach to Design Collaboration

Home Page: https://cgen-dlang.github.io/cgen-dlang/

License: MIT License

Python 0.90% Jupyter Notebook 99.10%

cgen-dlang's Introduction

cgen-dlang

ForTheBadge powered-by-electricity

Maintenance Website shields.io PyPI license

An Evolutionary Approach to Design Collaboration

ui


Introduction

cgen.dlang is a collaborative design system developed for small communities (5 – 50 people) who want to generate a collection of the team created and computer mutated visual structures that are likely to be optimal reflections of a team’s aesthetic values. These visual structures capture the full transmission history of aesthetics and are used to form design language systems.

Software Architecture

cgen.dlang’s infrastructure relies on a cocktail of programming languages for front-end and back-end specification and implementation.

Application Architecture

cgen.dlang’s system architecture. Users interface with the cgen.dlang interface to design structures (seed design) that are functions of the underlying component library and associated grammar. Users also have the option of voting() on other user-generated structures and genetically generated structures.

Components

The structure (system architecture) of cgen.dlang is composed of the following components: component library, component grammars, voting models, and evolutionary processes.

Definitions

  • component library - collection of pre-defined assets

  • component grammars - set of rules that define acceptable operations on and between components to form structures

  • voting models - schema outlining the method by which breeding candidates are selected

  • evolutionary processes

    • The solution space
    • A random population of genotypes (possible solutions)
    • Fitness function(s)
    • Virtual variational operators: compare(), mutate(), cross()

Install

# Start here
cd cgen_server

# Install dependencies
pip install -r requirements.txt

# And go...
python server.py

# Congifgure front-end
docker run -p 5432:5432 --name cgendlangpostgres -e POSTGRES_PASSWORD=cgendlangpostgres -d postgres

# Navigate to server and install
cd server
npm install

# Create the database structure
node_modules/knex/bin/cli.js migrate:latest

# Generate the first examples
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

Use

from cgen.dlang import cgen.example
import cgen.dlang as cgen
import ganbreeder as gan
import tensorflow as tf
import pytorch as torch
import numpy as np

# Generate structure
cgen.Gen_STRUCT(cgen.example.components, ..., cgen.example.operations)

Support or Contact

Looking for help or wanting to contribute to the arts and ai? Check out our documentation or contact team and we’ll help you sort it out.


ForTheBadge built-by-developers ForTheBadge built-with-love

cgen-dlang's People

Contributors

eoduniyi avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.