StyleGAN

I’ve trained Kids-Self-Portrait-GAN model with your own data using Runway. My inspiration for this project was my nephew who draws beautiful pictures. So, I’ve chosen a styleGAN which reminds me of his works.

I’ve generated kids pictures with runway ML and by passing those to P5 JS, displayed them in the browser. This model generate self-portrait images of kids images. After adding it to my workspace I run it remotely, which runs remotely in cloud. After the images populated, I’ve choosen the generated image I want to work with and went to Network option, which shows me a variety of options of communication. I worked with HTTP. I sent the my request to Runway by httpPost() function;

 httpPost(path, [datatype], [data], [callback], [errorCallback])

DataType: “json”

Path: "http://localhost:8000/query"

In my sketch every time I click on kids button, I get a new style of StyleGAN geretated kids image in P5 web editor. I’m slightly happy with the results, and i’ve attempted to animate the images but couldn’t success. I want to work on it.

CODE

Screen Shot 2020-02-20 at 9.43.33 PM.png