martinbenson / deep-photo-styletransfer

Implementation of "Deep Photo Style Transfer": https://arxiv.org/abs/1703.07511
MIT License
205 stars 27 forks source link

Where is the laplacian file? #28

Closed vermontleo closed 7 years ago

vermontleo commented 7 years ago

Hello, everyone. I'v installed docker ce and @martinbenson 's image, and I'm trying out this code deep_photo# python3 deep_photo.py -laplacian And I saw this

-laplacian LAPLACIAN laplacian file location

But I cannot find the laplacian file Am I wrong? Thanks

martinbenson commented 7 years ago

The code will create the laplacian file if needed. If you don't specify a value for that parameter it will just create laplacian.csv in the same directory as deep_photo.py. But, calculating the laplacian matrix is time consuming and you don't really want to calculate it if you don't have to. So you can specify a location and if it finds the file then it just loads it rather than recalculating.

Note that the laplacian matrix is specific to the image sized used and you cannot recycle it if you change image size (without getting weird results). So, i tend to name the files _.csv

vermontleo commented 7 years ago

Thanks a lot. I got it. You are so nice.

ProGamerGov commented 7 years ago

@vermontleo I made a standalone version of the laplacian creator here, if you don't want to use deep_photo.py: https://gist.github.com/ProGamerGov/290f26afccc5e013d1a8425ef6a594f2