anishathalye / neural-style

Neural style in TensorFlow! 🎨
https://anishathalye.com/an-ai-that-can-mimic-any-artist/
GNU General Public License v3.0
5.54k stars 1.51k forks source link

How do you make the imagenet-vgg-verydeep-19.mat #32

Closed menglin0320 closed 8 years ago

menglin0320 commented 8 years ago

I'm working on a project and I need only part of vgg16 in my work. So I want to look at your code and figure out how to do that. But it seems like you didn't share your code for making imagenet-vgg-verydeep-19.mat. Can I know more about how do you get the imagenet-vgg-verydeep-19.mat file

anishathalye commented 8 years ago

https://github.com/anishathalye/neural-style#requirements

menglin0320 commented 8 years ago

What I need is vgg16 but it is vgg19. So I wonder how you get this or how you make this.

anishathalye commented 8 years ago

http://www.vlfeat.org/matconvnet/models/imagenet-vgg-verydeep-16.mat

more info: http://www.vlfeat.org/matconvnet/pretrained/

anishathalye commented 8 years ago

original paper: https://arxiv.org/pdf/1409.1556.pdf

menglin0320 commented 8 years ago

Thanks

anishathalye commented 8 years ago

👍

stephanedebove commented 5 years ago

I downloaded imagenet-vgg-verydeep-16.mat, put it in the root folder, but got the message "Network imagenet-vgg-verydeep-19.mat does not exist". So I downloaded imagenet-vgg-verydeep-19.mat, put it in the root folder, and got the message " You're using the wrong VGG19 data".

What is the file I need and what should I do with it? Could you udpate README.md with the full instructions?

anishathalye commented 5 years ago

The README has full instructions: it includes a link for which file to download. See here: https://github.com/anishathalye/neural-style/tree/75188f06cac8140143ee32c35d68e1484d5f6687#data-files

Apparently, this continues to be a source of confusion, so I just updated the code to be compatible with both data formats. See the commit message for https://github.com/anishathalye/neural-style/commit/fcc43d79d2ea107c789d53424825ec9ffe8788f8 for details.

stephanedebove commented 5 years ago

sorry if I didn't see it, even if I've read the readme ten times :). It's working with the linked file, thanks.

anishathalye commented 5 years ago

No problem, a lot of people have missed it :)

Glad you finally got it working!

On Nov 24, 2018, at 3:21 AM, Stéphane Debove notifications@github.com wrote:

sorry if I didn't see it, even if I've read the readme ten times :). It's working with the linked file, thanks.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

Keerthana2701 commented 4 years ago

imagenet-vgg-verydeep-19.mat when loaded gives the below error: conv2d_v2() got an unexpected keyword argument 'filter'

i have downloaded the .mat file from https://www.vlfeat.org/matconvnet/pretrained/

how do i resolve this error?

anishathalye commented 4 years ago

https://github.com/anishathalye/neural-style#data-files

Udayuk commented 4 years ago

imagenet-vgg-verydeep-19.mat when loaded gives the below error: conv2d_v2() got an unexpected keyword argument 'filter'

i have downloaded the .mat file from https://www.vlfeat.org/matconvnet/pretrained/

how do i resolve this error?

Hey..did you solve this error? Im getting the same error too. Please help anyone