pytorch / tutorials

PyTorch tutorials.
https://pytorch.org/tutorials/
BSD 3-Clause "New" or "Revised" License
8.1k stars 4.03k forks source link

art transfer tutorial uses incomplete model for training #1595

Open Hitansh159 opened 3 years ago

Hitansh159 commented 3 years ago

I read the A neural Algorithm of artistic style recently and while trying to implement I referred pytorch's tutorial but it used only top layers rather than full model as suggested by paper

From same input images :

Style image

style image

Context image:

context image

This is result from tutorial :

Tutorial result

This is the result after full model :

my result

As you can see my results captured context as well as style better than current version the algorithm is expected to work with transfer learning from VGG19 model which will have 19 conv layers but the current tutorial only have 5 layers which is why results aren't up to the mark.

Changes:

I would like to contribute to this issue

Hitansh159 commented 3 years ago

I have also made an PR for it please review it and let me know if any changes are needed