Skip to content

In each iteration, the algorithm allows us to converge towards the target image by the process of evolution over a number of generations.

Notifications You must be signed in to change notification settings

anjanak13/GenerativeAI

Repository files navigation

Generative AI Final Project 🛰

Problem Description

The art style that I opted to select for this particular program included creating a unique piece of work that used generative algorithms to create an image that had a unique perspective but still had a number of points that would allow it to retain the original outlook as well as the outline of the initial target image.

The generative method used in this instance involves creating an initial population of images and then evaluating their fitness based on the absolute pixel-wise difference from the original image. The image is then iteratively evolved through the process of crossover and mutation.

Method

As denoted previously, I used a simple genetic algorithm and the process of evolution to create a unique image. The process of generation is as follows, the main method is used in order to create and instantiate a number of important variables such as the population, mutation rate as well as the number of generations. In essence, at each generation, the program evaluates the fitness of the created image in the population, it then selects the parents based on the fitness and performs crossover as well as mutation to create a new population and in the process replaces the old population with the new one.

Different Drawing Techniques

The figures below depict the effect two different drawing styles have on the output, both the figures depict an output after 5200 generations with very similar controls attached.


Evolution through generations

The following figures illustrate the progression across generations, with increments of 100 shown in each step

About

In each iteration, the algorithm allows us to converge towards the target image by the process of evolution over a number of generations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages