In honor of my recent #americanhorrorstory binge. . #ahs #dcgan #nightmare https://www.instagram.com/p/CHtALjEhwxF/?igshid=dyarmfj40bzh

seen from Germany

seen from Spain

seen from Malaysia
seen from Japan
seen from United States
seen from Japan

seen from Japan
seen from United Arab Emirates
seen from Netherlands

seen from Germany
seen from United States

seen from Taiwan

seen from Malaysia
seen from Canada
seen from China
seen from China

seen from Australia

seen from United States

seen from Australia
seen from Bulgaria
In honor of my recent #americanhorrorstory binge. . #ahs #dcgan #nightmare https://www.instagram.com/p/CHtALjEhwxF/?igshid=dyarmfj40bzh
Seamless textures from a single image: style transfer and SGAN
If youāre looking for an image to use as the background of a website or a texture on a 3D model, chances are, you want it to be seamlessĀ ā if you tile a bunch of instances of the same image as a grid, there wonāt be any seams or discontinuities near the edges.
Making this images isnāt easy. But what if we could synthesize repeating images entirely algorithmically, using an existing image as a guide to specify the type of texture weāre looking for.
Gatys et alās neural style transfer paper suggests that you can synthesize textures with the ordinary neural style transfer algorithm, which I implemented earlier. The trick is to skip specifying a content image input ā just ask the network to take a blank canvas and optimize it to match the style of another image.
I modified this to produce seamless images by adding an additional constraint that the boundaries of the image, when tiled side-by-side, also match the style of the source image.
This actually works decently well, and produced a couple of interesting textures:
These images donāt have jarring discontinuities at the boundaries, but they do have some not-so-great quirks ā the frequencies of the textures seem to die down near the edges, rather than producing a robust texture that crosses the boundary:
A different approach
I wrote earlier about implementing a convolutional generative adversarial network (GAN) to generate images. These models are good at generating images because theyāre trained to distinguish between their own generated images and theĀ ārealā images from a dataset, and simultaneously trained to fool thisĀ ādiscriminator.ā
I stumbled across a paper describing a variant of GAN called Spatial Generative Adversarial Networks, which claims to be able to generate arbitrarily large textures, as well as repeating textures. Itās like the DCGAN I described before, but with a couple important differences:
- rather than using a random vector as theĀ āseedā for the generator, it takes in a 2D image of random noise, and translates this into a larger, detailed image
- the output of the discriminator is also an image, describing how locally realistic each part of the image is
- there are no fully-connected layers, only convolutions
These changes make it fully convolutionalĀ ā rather than operating on fixed-size images, it operates by applying convolutional filters across arbitrarily-sized images.
By feeding in arbitrarily large random noise images, you can generate arbitrarily large textures. But hereās the trick: you can make a random noise image, tile it 2x2, feed it into the network, and take the middle 50% of the output image ā itāll be seamless, since both sides were generated from the same noise.
GANs are really hard to train, so it took a long time to find the right hyperparameters for this network ā once I did, it actually seemed to work decently well:
š“ Style transfer-based code
š¾ SGAN code
Psychedelic loops . #ai #ml #GAN #dcgan #art #generativedesign #generativeart #cyberpunk #machinelearning #retrowave #vaporwave #neonwave #glitch #glitchart #design #cyber (at Latent Space) https://www.instagram.com/p/B_tRcu8hOVO/?igshid=1reqymoc5h0tf
#dcgan #couture #glitchart #fashion (at Latent Space) https://www.instagram.com/p/CAzj8Z0IlL-/?igshid=ipkw2cju2uvv
DCGAN training with MNIST data (10 epochs).
Implementation:Ā https://github.com/mateusz800/GAN_playground/tree/master/DCGAN
Best of tattoo GAN . #ai #ml #GAN #dcgan #art #generativedesign #generativeart #cyberpunk #machinelearning #retrowave #vaporwave #neonwave #glitch #glitchart #design #CYBER #tattoo #inked #inkart (at Latent Space) https://www.instagram.com/p/B_DWMgEhs4t/?igshid=1b80ynchs7l8
Not sure if I'm starting to see stuff, but here's glitch dog and his owner... #ai #ml #GAN #dcgan #art #generativedesign #generativeart #cyberpunk #machinelearning #retrowave #vaporwave #neonwave #glitch #glitchart #design #cyber (at Latent Space) https://www.instagram.com/p/B_APHhuA__f/?igshid=1mvvj95pzvdt
Nature's finest #ai #ml #GAN #dcgan #art #generativedesign #generativeart #cyberpunk #machinelearning #retrowave #vaporwave #neonwave #glitch #glitchart #design #cyber https://www.instagram.com/p/B--eEiMBeYZ/?igshid=1y2kyrtndg63k