News for hackers. Stuff that matters.
Re:Show HN: Neural network turns photos into a specific styl... by nthitz on Wednesday September 02, 2015 @08:16PM (#10162723)
Re:Show HN: Neural network turns photos into a specific styl... by mappu on Thursday September 03, 2015 @04:36AM (#10163876)
> I'd like to understand this algorithm well enough to generalize it to other media (mainly thinking about sound right now)

A DeepDream for audio would be very interesting.

Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @09:33PM (#10168412)
It'd probably be a lot better for usable results, since you can easily restrict it to certain musical scales.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Wednesday September 02, 2015 @08:31PM (#10162765)
In the process of switching to this implementation.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Wednesday September 02, 2015 @11:54PM (#10163267)
Can't switch until nvidia approves my CUDA account.
Re:Show HN: Neural network turns photos into a specific styl... by sherjilozair on Thursday September 03, 2015 @01:52AM (#10163523)
Why do you need a CUDA account? You don't need one to install CUDA.
Re:Show HN: Neural network turns photos into a specific styl... by danieldk on Thursday September 03, 2015 @02:43AM (#10163620)
But you do need one for cuDNN, which is not required for Caffe, but speeds it up.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @03:50AM (#10163759)
Yes getting out-of-memory issues without cudnn.
Re:Show HN: Neural network turns photos into a specific styl... by Nanne on Thursday September 03, 2015 @04:15AM (#10163820)
Might want to take a look at: https://github.com/jcjohnson/neural-style/issues/7

Oh, and since you're basically using this commercially you might also want to take a look at the license of the VGG model: https://gist.github.com/ksimonyan/3785162f95cd2d5fee77#file-...

Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @12:28PM (#10165849)
Am I using it commercially? The results are given away for free. If you want s human artist to paint it (what instapainting does) you have to upload your result as a reference image yourself.

My use would fit under the CC definition of non commercial since the neural net results are handed out for free.

Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @09:45PM (#10168439)
It's now switched to Kyle McDonald's implementation. It's a lot slower though.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Friday September 04, 2015 @12:58PM (#10171597)
*by Justin johnson
Re:Show HN: Neural network turns photos into a specific styl... by benologist on Wednesday September 02, 2015 @05:54PM (#10162152)
Will there be an API for this for digital-only, high resolution pics?

Some feedback too:

1) when submitting it was a bit weird that I have to upload pics in order vs explicitly 'this is my pic', 'this is my art pic'

2) a lot of people won't have a catalog of digital art to upload as their reference pic, some samples to select from would be nice

3) after uploading my source + reference pics and clicking 'submit artwork' it takes me to a login/signup page for AMANUFACTORY.COM. That button really stands out as what-you-should-do to finish the process!

4) would be nice if instead of selecting one painting it generated lots of different styles

Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Wednesday September 02, 2015 @06:06PM (#10162208)
I hacked this in one day using some UI for existing stuff, so the UI will be a bit weird.

After uploading your source + reference, you don't have to do anything. The Submit button at the bottom is UI for other people to submit a resulting image. I'll probably remove it since it's for the other stuff.

As far as API, the process is fairly expensive (uses EC2 GPU instance), so any heavy application type usage would probably be better served by setting up your own instance. We use implementations found on github (credit at the bottom of the page).

Re:Show HN: Neural network turns photos into a specific styl... by dutchbrit on Wednesday September 02, 2015 @07:22PM (#10162572)
Funny, I hacked something like this together too recently, although it did take me a bit longer. Nice job!
Re:Show HN: Neural network turns photos into a specific styl... by benologist on Wednesday September 02, 2015 @06:14PM (#10162255)
Thanks for the info.
Re:Show HN: Neural network turns photos into a specific styl... by bithive123 on Wednesday September 02, 2015 @07:24PM (#10162578)
Re:Show HN: Neural network turns photos into a specific styl... by anjc on Wednesday September 02, 2015 @07:38PM (#10162626)
Quick off the mark eh? When was this idea published by those researchers, two days ago?

No wonder universities are getting super serious about IP protection/licensing/commercialisation

Re:Show HN: Neural network turns photos into a specific styl... by dr_zoidberg on Wednesday September 02, 2015 @07:55PM (#10162668)
arxiv says it was submitted 26 Aug, so about a week ago. Near the end of the paper they explain how to implement it, so I guess it was a matter of reading the paper and sitting with caffe to toy/hack an implementation -- most of the heavy work was "already done".

Edited some typos.

Re:Show HN: Neural network turns photos into a specific styl... by duaneb on Thursday September 03, 2015 @04:15AM (#10163818)
> No wonder universities are getting super serious about IP protection/licensing/commercialisation

oh god, the knowledge might be free with only attribution and no revenue! the horror!

Re:Show HN: Neural network turns photos into a specific styl... by anjc on Thursday September 03, 2015 @09:00AM (#10164634)
Eh how do you incentivise the creation of this knowledge given that it costs money to do?
Re:Show HN: Neural network turns photos into a specific styl... by duaneb on Thursday September 03, 2015 @01:50PM (#10166453)
The kids who know what's up will know where to do the research. That should be incentive enough. Considering you can't stop another organization from building on your research, the "competition" is a little hard to explain.

A university should be run like a school, not a business.

Re:Show HN: Neural network turns photos into a specific styl... by anjc on Saturday September 05, 2015 @08:02AM (#10174593)
You should look up the financial statements for one of your local colleges and see if it can't be run like a business. Just one of them costs a lot of money to keep going..

That's why they have to protect IP and commercialise it. Because if they don't, the colleges can't keep teaching as it all costs so much.

Re:Show HN: Neural network turns photos into a specific styl... by gwern on Wednesday September 02, 2015 @09:52PM (#10162990)
I'm sure they're trying to patent it. (eg DeepMind has been patenting everything they can, even stuff like dropout and deep q-learning!) Which raises an interesting question: Instapainting is a commercial service and this is targeted at customers:

> After your artwork is generated, you are free to use it for any purpose. Upload it to Instapainting.com as an order and an artist will physically hand-paint it!

So how does that interact with the patent application? Are they liable for damages once the patents go through or do they just have to take it down?

Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Wednesday September 02, 2015 @10:14PM (#10163052)
Well that line is more like an advertisement for Instapainting. Instapainting doesn't run on this technology.

That being said, a human artist can do a much better job than these algorithms!

Re:Show HN: Neural network turns photos into a specific styl... by danieldk on Thursday September 03, 2015 @02:47AM (#10163625)
Instapainting doesn't run on this technology.

Aren't most convnets trained using dropout these days?

Edit: it seems the implementation that this site uses does as well:

https://github.com/kaishengtai/neuralart/blob/master/models/...

Patents need to go :(.

Re:Show HN: Neural network turns photos into a specific styl... by nekopa on Thursday September 03, 2015 @04:36AM (#10163877)
Wow, I need more coffee, I read your sentence as:

Aren't most convicts trained as dropouts these days?

Thought he was contracting out prisoners to paint for him...

Re:Show HN: Neural network turns photos into a specific styl... by sudhirj on Thursday September 03, 2015 @05:28AM (#10163982)
Seriously quick. I thought I'd take a stab at it and asked what the license was for the reference implementation. Haven't even check the answer yet :-/
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @01:15PM (#10166154)
The implementation that's currently running is MIT licensed.
Re:Show HN: Neural network turns photos into a specific styl... by arm55 on Wednesday September 02, 2015 @07:24PM (#10162579)
I'd be really surprised if someone isn't already hard at work on an iOS app that uses this tech. The scalability is of course a problem, but I'd pay 50 cents per photo (assuming I got a small preview of it first) or something of that order to support the costs.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Wednesday September 02, 2015 @07:32PM (#10162607)
There's no public list, so if you ran an image feel free to share here.
Re:Show HN: Neural network turns photos into a specific styl... by astrange on Thursday September 03, 2015 @11:16PM (#10168660)
I accidentally submitted something four different times, since I thought the form wasn't loading. Does it just start as soon as you post two images, without a submit button?
Re:Show HN: Neural network turns photos into a specific styl... by siegecraft on Thursday September 03, 2015 @03:14AM (#10163686)
I wonder what it looks like if you upload something cubist or otherwise abstract.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @10:12PM (#10168508)
Re:Show HN: Neural network turns photos into a specific styl... by siegecraft on Friday September 04, 2015 @12:39PM (#10171497)
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Friday September 04, 2015 @04:55PM (#10172825)
The art style image should be the second image. So it tried to do the artwork in the style of the photo instead.
Re:Show HN: Neural network turns photos into a specific styl... by dharma1 on Wednesday September 02, 2015 @08:08PM (#10162700)
that was quick, the paper just came out
Re:Show HN: Neural network turns photos into a specific styl... by SomeDev15 on Thursday September 03, 2015 @08:37AM (#10164548)
What paper are you refering to?

edit: Leon A. Gatys, Alexander S. Ecker, Matthias Bethge, A Neural Algorithm of Artistic Style

Re:Show HN: Neural network turns photos into a specific styl... by deepnet on Thursday September 03, 2015 @12:34PM (#10165887)
A Neural Algorithm of Artistic Style by Leon A. Gatys, Alexander S. Ecker, Matthias Bethge

http://arxiv.org/abs/1508.06576

Re:Show HN: Neural network turns photos into a specific styl... by zigggi on Thursday September 03, 2015 @04:41AM (#10163883)
can we get a bigger version of the resulting image? The output is very small.
Re:Show HN: Neural network turns photos into a specific styl... by chrischen on Thursday September 03, 2015 @10:13PM (#10168510)
Just upgraded the implementation used. I'll see if I can increase the size without running into memory issues.

EDIT: Increased to 768px max size.