• Generative Art
  • Art Analytics
  • Right Click Save
    • About
    • Advisory Board
    • Press
    • Contact
    • Art Authentication
    • Community
  • Blog
Menu

Artnome

100 State Street
Framingham, MA, 01702
Phone Number
Exploring Art Through Data

Your Custom Text Here

Artnome

  • Generative Art
  • Art Analytics
  • Right Click Save
  • About
    • About
    • Advisory Board
    • Press
    • Contact
    • Art Authentication
    • Community
  • Blog

Blog

Exploring art through data using the Artnome database. 

 

Neural Style Transfer And Inpainting For Artists

November 29, 2019 Jason Bailey
Final_Artnome_Jaws.jpg

I work for myself and I am cruel boss so I don’t take too much time off. But I make an exception on Thanksgiving so yesterday I let myself get creative and play around a bit with some machine learning models. The end result of playing around is the image above which composites a still from the movie JAWS into a painting of a shark attack from 1778 by John Singleton Copley called Watson and the Shark. You can see the two source images below.

Watson and the Shark, John Singleton Copley - 1778

Watson and the Shark, John Singleton Copley - 1778

Still from the 1975 Steven Spielberg movie JAWS

Still from the 1975 Steven Spielberg movie JAWS

Like lots of people, sharks freak me out. Copley’s “Watson and the Shark” is a large painting (72 1/4 x 90 3/8) and it made an equally large impression on me as a child visiting the museum. Learning that the person getting attacked by the shark in the painting was a 14 year old boy didn’t make me feel much better at the time. Interestingly, the boy (Brook Watson) survived minus one leg and eventually became Lord Mayor of London and an original committee member of Llyods of London eventually becoming an early chairman. It was Watson who commissioned the epic painting from Boston born painter John Singleton Copley.

Around the same time I saw this painting I also watched JAWs for the first time. The two experiences have been intermingled in my mind ever since. So I thought it would be fun to try and use a combination of neural style transfer and inpainting to combine them.

First step was to find a film still from JAWS that looked like it would fit with the image. I lucked out and the first image from Google that came up felt like it could be a good fit. I then opened the images in a software package called Runway ML created by my friend Cristóbal Valenzuela to “bring the power of artificial intelligence to your creative projects with an intuitive and simple visual interface.” In Runway I selected the Ada-IN Style-Transfer model and loaded the JAWS film still first and then loaded the Copley painting second as a source for the style transfer. The results were pretty solid right off the bat!

Ada-IN Style-Transfer

Ada-IN Style-Transfer

I then opened the original image of “Watson And The Shark” in Photoshop and extended the canvas space on both sides (which was initially blank) and crudely placed the two men on the left side and the shark on the right. Though as you can see from the screen shot of Runway ML the style transfer did a great job, I tweaked the levels and saturation a bit to get it even closer to the painting - but honestly not very much.

Photoshop aligning the pieces

Photoshop aligning the pieces

Then I used Photoshop’s “content aware fill” tool which is essentially an inpainting algorithm that pulls information from surrounding areas to fill in holes or areas where there is no content. To do this you just mask off the areas you want to fill using inpainting and then activate the content aware fill tools. I like to mask the seams between images to smooth out the transitions.

Masking for the content aware fill tool.

Masking for the content aware fill tool.

And that is basically it! Actually, I ran the whole thing through the style transfer one more time with my new collaged image as the destination and the original painting as the style source, this helped a lot with making the whole image look and feel unified covering up color and texture differences. Final image below.

Final_Artnome_Jaws.jpg

I did some other cool/fun stuff with Runway and Photoshop including this layered Inpainting which is created from a few dozen layers and creates a really cool output image.

Watson_And_The_Shark.png

I don’t usually do tutorials but if you dig this let me know and maybe I will do some more (or bug my friends who are real experts to see if they’d be willing to share a tip or two).

← Drawing In Code: Pencils, Pixels, ProcessSpeaking Machine, Art, and Design With John Maeda →
Get The Newsletter
Thank you!
Blog RSS

You Might Also Like:

Featured
Primary_Image (1).png
Field Guide - Imagined Specimens and Ecosystems
Read More →
Vanishing_NFT.png
Back Up Your NFT Art or It Could Disappear
Read More →
Blake.png
Why Museums Should Be Thinking Longer Term About NFTs
Read More →
Screen Shot 2021-06-02 at 3.49.24 PM.png
GreenNFTs Hackathon Brings New Ideas, Awareness, and Solutions
Read More →
Screen Shot 2021-05-23 at 10.31.52 AM.png
Constructive Instability - The Art of Lucas Aguirre
Read More →
Museum_NFTs.png
What Makes a Museum Object NFT Valuable Beyond the Scope of the Technology?
Read More →
A sample of the highest selling NFTs on the SuperRare marketplace
In Search of an Aesthetics of Crypto Art
Read More →
Hic Et Nunc Brings True Spirit Of Web Art To The Here And Now
Hic Et Nunc Brings True Spirit Of Web Art To The Here And Now
Read More →
newplot (6).png
Who Is In Your SuperRare Network?
Read More →
TWOSOLDIERSATWARI.png
Artists Rally to Support #EndSARS
Read More →
mint_3.png
Interview with Generative Artist Kjetil Golid
Read More →
12647ec4427e16c13b1a19fda327b7f2.jpg
Interview With Generative Artist Jared Tarbell
Read More →
complex2.jpeg
The Game of Life - Emergence in Generative Art
Read More →
How_To_Become_A_Successful_Artist_Warhol.png
How To Become A Successful Artist
Read More →
Can Machine Learning Predict the Price of Art at Auction?
Can Machine Learning Predict the Price of Art at Auction?
Read More →
2020 Art Market Predictions
2020 Art Market Predictions
Read More →
Screen Shot 2020-01-12 at 12.27.04 PM.png
Artnome - 2019 Year in Review
Read More →
Augmenting Creativity - Decoding AI and Generative Art
Augmenting Creativity - Decoding AI and Generative Art
Read More →
Tabula Rasa - Rethinking the intelligence of machine minds
Tabula Rasa - Rethinking the intelligence of machine minds
Read More →
Can AI Art Authentication Put An End To Art Forgery?
Can AI Art Authentication Put An End To Art Forgery?
Read More →

POWERED BY SQUARESPACE