LouieYang / deep-photo-styletransfer-tf

Tensorflow (Python API) implementation of Deep Photo Style Transfer
805 stars 186 forks source link

Error #3

Closed beraybentesen closed 7 years ago

beraybentesen commented 7 years ago

File "deep_photostyle.py", line 4, in from photo_style import stylize File "/home/nvidia/Desktop/Deep-Style-Transfer/deep-photo-styletransfer-tf/photo_style.py", line 6, in from vgg19.vgg import Vgg19 ImportError: No module named vgg19.vgg

yyll008 commented 7 years ago

I have the same error

LouieYang commented 7 years ago

Add init.py in vgg19 folder, try it again.

yyll008 commented 7 years ago

Can't solve this

LouieYang commented 7 years ago

Really, are you sure you download the latest file and init.py is in vgg19 folder?

DrewWham commented 7 years ago

I had this problem yesterday and I cloned the repository again today and tried your example code. It is running now. So I think init.py fixed the problem.

LouieYang commented 7 years ago

Closed it since init.py seems like solving the problem. Maybe Import a file from a subdirectory? could help solving this.

yyll008 commented 7 years ago

Yes,fixed the problem by init.py