Neural Style Transfer : From Theory to Pytorch Implementation

preview_player
Показать описание
In this video I'll introduce you to neural style transfer, a cool way to use deep neural network to manipulate photo to yield beautiful automatically generated new photos! This is a fairly lengthy videos so here is the breakdown if you need to move around a bit:

Introduction: 0:00:00
Tools: 0:00:32
Resource: 0:01:01
Paper Overview from Leon A. Gatys, Alexander S. Ecker, Matthias Bethge: 0:02:30
Code from Pytorch Documentation Walkthrough: 0:20:23
Conclusion: 0:50:00

Here are the resources used in this video:

If you are new to Machine Learning here are some great starting point:

Final Note: Here I am using Pytorch to code the neural style transfer algorithm, however if you prefer Tensorflow or Keras you can definetly go with that too! A quick google search with Neural Style Transfer will get you all of these cool tutorial in these other framework:

If you have any question leave them in the comments section, will be glad to answer them!

Music is by Forest Swords and the thumbnail is figure 1 of the paper!

----

----
Follow Me Online Here:

___

Have a great week! 👋
Рекомендации по теме
Комментарии
Автор

Is this code for works only for same size of images ? Because it was giving while i used for my images

himadrilabana
Автор

Commenting just to say this works almost perfectly first time. You just have to change the name of the style image to Picasso.jpg before running it (assuming you're using his images).

There's no need to watch the whole video if you're just looking for a functioning script. This is the easiest to implement of all the universal style transfer scripts I've used thus far. Kudos to the author!

johnsalter
Автор

Can you tell me how to save the image output via plt? Tried savefigure and had no succes. The saved image had the right resolution but was empty...

telomerase
Автор

content loss input content image so why it isnt zero ? but you say it error between target which generated image and content i dont see this in the code

michaelscheinfeild
Автор

how the input combined ?, is it 3 layer rgb and one of them is style, or first the input style and input original and go back reconstruct how the use the combination ?

michaelscheinfeild
Автор

Any idea how to fix this when I picked my style and content image and tried to use the imshow() function I got this error: ValueError: pic should be 2/3 dimensional. Got 4 dimensions.

MrWolfgangWeiss
Автор

Bro nice tutorial ty for this. Then ı need this code. I couldnt see your link

batuhanbayraktar
Автор

Nice tutorial, thanks a lot. But! If you explain something - just explain. Watching how you was moving the pieces of
code was so annoying!

Anastasiyofworld