Skip to content

MightyStud/NST-AI-to-create-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NST, using AI to create art

NST was first introduced in 2015 paper it took advantage of how convolution neural network works, The system uses neural representations to separate and recombine content and style of arbitrary images. In simple words, it transfer the style from one image to another and their weights. The results vary depending on style image and the content image. In this notebook, it is designed in a way where you can easily use the Neural Style transfer with your own images with minimum adjustments.

literature review

VGG19 Using VGG19 network with pretrained weights excluding the top fully connected layers, usually for training purposes the weights of different layers are adjusting to minimize the loss function, however in NST, all the layers are frozen(not changed) except the input layer which in that case is the generated image.

The generated image is free to change its values to minimize the loss function.

How does the loss function look like in this case, you might ask? The loss function is combination of the content image loss and style image loss. The content loss compares the original image with the generated image for every convoloution layer. The style loss, on the other hand, uses the gram matrix to compare the style loss and the generated image loss.

More details are explained in the reserch paper.

results:

The results will vary dramatically depending on the parameters you use, you can think of this as a filter for your images but with AI help rather than tools like photoshop. github image of result

github image of result 2

References and heavy influencers:

About

NST was first introduced in 2015 paper it took advantage of how convolution neural network works to generate art

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published