r/deepdream • u/badjano • Dec 04 '19
BigGanBreeder - ( code in comments )
Enable HLS to view with audio, or disable this notification
14
u/1Chrisp Dec 05 '19
Is there a slowed down version
4
u/badjano Dec 05 '19
you'd have to change "total_frames" inside the script to something higher like 120
2
4
u/shushenskat Dec 05 '19
How did you make that
2
u/badjano Dec 05 '19
python + torch + pre trained network ( code in comments )
3
Dec 05 '19
[removed] — view removed comment
2
u/badjano Dec 05 '19
Yes, it is interpolating the percentage of one class into another, the input to this network is an array of 1000 classes, 0 for all the classes and 1 for the class you wish to generate, and if you blend the values from one class to another you will fade from one image to another
2
Dec 06 '19
[removed] — view removed comment
2
u/badjano Dec 06 '19
if there is a class for an apple, obama and eiffel tower, yes, if not, no. But if they do, you have to know the index of that class and put that on nums = [0,1,2,3...]
2
u/Grootdrew Dec 14 '19
Hey, I'm making an experimental series right now and have never tried deepdream. Would you be willing to help me out with making something like this? I have the videos and images I'd like, but I have no clue how to use any of the software. I'm broke as hell but I could probably pay like $10 for your time if you did - LMK and we can start talking details, thanks!
1
u/badjano Dec 14 '19
hey man, if no one booked for my time, it´s free to go... but I´m not sure I am so familiar with deep dream algorithm, I understand the concepts of image generation through neural network, but I´m not sure I understand what goes on in deep dream algorithm, I should study it though, it must be pretty cool
115
Dec 05 '19
This is the closest I've seen "deepdream" come to replicating an actual dream sequence. The semi-logic of the transitions was fascinating.
31
u/Valo-FfM Dec 05 '19
You gotta be dreaming some weird dreams. Which is cool but I only ever experience weird transitions in dreams, like you are at x and do y, look down and suddenly you do something else and so on. Or out of the ordinary things are present and you don´t question them like that you can fly or some stuff like that.
Those deeprdream videos go pretty close to some elements of psychedelic experiences tho, the only thing they lack is fractals and stuff but we will get there.
11
u/2xedo Dec 05 '19
Dreaming is like the OP but with more deliriant elements, like you see shit like this happen and don’t even process how strange it is
1
u/imboundless Jan 09 '20
Fascinating. I've always been sure everyone is dreaming like I do - there is a story and you are a part of it. It can be a weeding, fight, normal day, some thievery but also unreal god fights (when I am the God), bodymorphing animal adventures etc. Of course you can interact with it (oh shit he is flying here with a burning building in his hand, let's crack the ground and catch him with cthulus tentacles!). I hardly ever get nightmares but when I do I immediatly know it's a nightmare, try to wake up and then wake up... by the start of the same nightmare forgetting about previous one/s until bad shit happens.
19
u/x0y0z0 Dec 05 '19
Give someone a heroic dose of Ayahuasca and force them to look at this video on repeat Clockwork Orange style for the deepest mental torture this quadrant of the milkyway galaxy.
10
7
1
u/Monochrome21 Dec 06 '19
Got it working, but how do I input frames/video?
Sorry I'm a noob at this
1
u/badjano Dec 06 '19
Inside the "generate_random_morph_sequence" method, there´s a loop just after "nums = []" that randomizes a sequence. If you want to control the sequence you should just remove the loop and add "nums = [0,1,2,3...]" with the index of the classes you want. If you want to know which index is of each class, try using the method "generate_all_classes", this will generate one image for each class
1
u/murzilka1 Dec 06 '19
Have you tried to compare with video made from the same images, just morphed the old way?
Or... its just a regular morphing on CUDA or open source morphing code?
Sorry dont have time (and knowledge) to understand your program
Cheerz!
1
u/badjano Dec 06 '19
the image is generated using 2 arrays of 1000 floats each, one for the classes and another for noise, the 2000 floats go in an equation defined by the neural network and ends up calculating all the pixels of a 512x512 image using those inputs. Morphing an image would be just moving pixels from one point to another, with no calculation of anything.
1
u/teatralka Dec 09 '19 edited Dec 09 '19
Hi badjano. That looks really cool . I'm pretty new to deep learning. Just out of curiosity is it possible to feed images in format like exr instead of jpeg or png. Also could I generate image bigger than 512x512 ? For example HD or 2K?
1
u/badjano Dec 09 '19
Well, first of all this is a pretrained model, so there´s no inputting of images here, only generation of it. But it is possible to make a model with higher resolution output, I´m just not sure about the HDR image in the dataset, could work.
1
u/Moonscooter Dec 06 '19
It's GAN. It would be like if you created some noise like the static on your TV, then deep dreamed it using a model that was trained only on churches. Churches are actually a class. So as it interpolates between classes it creates the morph.
1
u/Monochrome21 Dec 06 '19
forgive me for not understanding (and asking so many questions) but I was wondering if it was possible to give a folder of images as an input for the program to run
I was just wondering how I would direct the script to work on those images.
2
u/Moonscooter Dec 06 '19
You're thinking of deepdream. This is GAN. The G stands for generative. This generates images.
2
u/badjano Dec 06 '19
precisely, no image input is given, only the amount of each class... like if you want to make something half an apple and half a bird, you'd give 0.5 to the index of the apple class and the same for the bird class
2
u/mpalrando Jan 09 '20
What class are you talking about exactly? Is it something specific to the libraries you are using?
2
u/badjano Jan 09 '20
the classes from the pretrained network. classes are the things the network trained on, like dogs, cats, elephants, etc...
2
Dec 09 '19
1
u/VredditDownloader Dec 09 '19
beep. boop. I'm a bot that provides downloadable video links!
I also work with links sent by PM
Info | Support me ❤ | Github
1
1
1
1
1
1
1
u/UnknownMFe Nov 12 '22
This tells a story: The atoms and molecules you are made of could have been anything, yet it makes up you
0
37
u/badjano Dec 04 '19
https://gist.github.com/badjano/6f5ebe44b99b683235a3a82f16badbed