Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 24, 2016, 10:45:02 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Request: Deepdream frontend.  (Read 6794 times)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,394
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #25 on: October 02, 2015, 07:25:06 PM »
P.S. If anyone gets the "DeepStyle" software running locally I'd love to send a few image pairs through it. I have some things I want to test. :D

For those interested in DeepDream, there's a downloadable VirtualBox VM available with it already installed, Ubuntu + Google's DeepDream.

Dodger Tools (5th image down the list) - 1.6GB

EDIT: The VM is set to German language, you can set it to English by opening a Term, editing /etc/default/locale, and then rebooting.

I'm currently installing Debian 8.1 to a VM to play with DeepStyle.
« Last Edit: October 03, 2015, 01:31:03 AM by 4wd »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #26 on: October 02, 2015, 11:37:29 PM »
P.S. If anyone gets the "DeepStyle" software running locally I'd love to send a few image pairs through it. I have some things I want to test. :D

For those interested in DeepDream, there's a downloadable VirtualBox VM available with it already installed, Ubuntu + Google's DeepDream.

Dodger Tools (5th image down the list) - 1.6GB

I'm currently installing Debian 8.1 to a VM to play with DeepStyle.

I've just about finished getting DeepStyle running on my Linux Mint VM. :) (And when I say that, I mean I'm on the last step that says "Make a cup of coffee or something, this will take a while... That’ll start a long, elaborate download process.")

@JavaJones, if you want to post some pictures in this thread, I'd be happy to try them out once it's done getting set up, if 4wd doesn't get to them first. :)


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,394
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #27 on: October 03, 2015, 01:25:10 AM »
@JavaJones, if you want to post some pictures in this thread, I'd be happy to try them out once it's done getting set up, if 4wd doesn't get to them first. :)

I gave up, Debian 8.1 in a VM didn't want to work so then I swapped to a VPS running Ubuntu 14.04 and while the whole installation took less than 10 minutes, the process was killed when it came to generating images due to the following:

Quote
[02:13 root@wc neural-style] >  th neural_style.lua -style_image image.jpg -content_image GEDC1428.JPG -gpu -1
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message.  If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
Killed
[02:13 root@wc neural-style] >

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #28 on: October 03, 2015, 01:30:14 AM »
I'm making a test image right now. I got a similar warning when I started it, but it got farther than yours did, and seems to still be going.

« Last Edit: October 04, 2015, 03:46:58 AM by Deozaan, Reason: Reading comprehension failure »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #29 on: October 03, 2015, 02:03:26 AM »
Well, it ran for a while and then died. :(

Here's the console/terminal log:

[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message.  If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
conv1_1: 64 3 3 3                                                        [3/276]
conv1_2: 64 64 3 3
conv2_1: 128 64 3 3
conv2_2: 128 128 3 3
conv3_1: 256 128 3 3
conv3_2: 256 256 3 3
conv3_3: 256 256 3 3
conv3_4: 256 256 3 3
conv4_1: 512 256 3 3
conv4_2: 512 512 3 3
conv4_3: 512 512 3 3
conv4_4: 512 512 3 3
conv5_1: 512 512 3 3
conv5_2: 512 512 3 3
conv5_3: 512 512 3 3
conv5_4: 512 512 3 3
fc6: 1 1 25088 4096
fc7: 1 1 4096 4096
fc8: 1 1 4096 1000
Setting up style layer          2       :       relu1_1
Setting up style layer          7       :       relu2_1
Setting up style layer          12      :       relu3_1
Killed

I'm trying again with smaller images, but don't expect different results....


4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,394
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #30 on: October 03, 2015, 02:33:24 AM »
Well, it ran for a while and then died. :(

Here's the console/terminal log:

[libprotobuf WARNING google/protobuf/io/coded_stream.cc:505] Reading dangerously large protocol message.  If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
conv1_1: 64 3 3 3                                                        [3/276]
...
Setting up style layer          2       :       relu1_1
Setting up style layer          7       :       relu2_1
Setting up style layer          12      :       relu3_1
Killed

I'm trying again with smaller images, but don't expect different results....

I had the exact same problem, I swapped over to a VPS (running Debian 7) with twice the RAM/VSWAP and it got as far you did above.

I think it's going to take a machine with a fair bit of RAM, (eg. 16GB), before it'll do something useful.

The style image I was using is only 190x266 (12.5kB) and the picture is 160x107 (11.1kB) and it still bombs out.

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 464
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #31 on: October 03, 2015, 12:58:58 PM »
I tried for hours and hours to set up a virtual box and get it to run python, using some directions found at
https://www.reddit.com/r/deepdream/
Very frustrating.  I'm not a programmer, much less a python programmer.  And I'm not familiar with Linux or virtual boxes.   So when things kept going wrong, my only hope was to do google searches and hope that someone else had already solved the exact same problem.   I did manage to get in to BIOS and activate virtualization--which was pretty good for a layman like myself.   I sortof got the virtual box running, but never did get the whole thing working. 

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #32 on: October 03, 2015, 01:48:40 PM »
I just realized that tsaint already posted about DeepStyle in this very thread a couple weeks ago and already said he got it working:

This , on a similar tack, might be worth a look
I had to install Ubuntu and a few other bits and pieces and I nearly (!) got it to work. Someone more tech-savvy than me probably could with probably good results.


JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,717
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #33 on: October 03, 2015, 01:52:57 PM »
He says "nearly", unfortunately. I wish we had @mentions. Tsaint, did you ever get this fully working? Anyone else? I continue to be very intrigued and occasionally very impressed with the results!

- Oshyan

JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,717
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #34 on: October 03, 2015, 06:55:12 PM »
And then... some crazy bastard *animated* it!



The video description includes links to instructions for getting it up and running easily with a prebuilt Amazon EC2 instance, which I just might try.

Lots more interesting examples here:
http://www.genekogan.../style-transfer.html

- Oshyan
« Last Edit: October 03, 2015, 09:47:13 PM by JavaJones »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #35 on: October 03, 2015, 10:01:36 PM »
I increased the available RAM for my VM to 8GB and it seems to be nearly (!) working now. I just ran another test and got permission issues when saving the output file. I'm not sure which permissions I should be granting myself (or why I don't have permission to write files into my own Home directory) but I just tried some things and am running another test. I think once I get the permissions issue(s) figured out, I'll be good to go with my own DeepStyle generator. :)


Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #36 on: October 04, 2015, 01:30:53 AM »
It worked!

I used a 3264x1840 content image and a 1920x1200 style image and the output is mysteriously only 512x288. Weird. I was hoping for something I could use as a wallpaper.

Anyway, here are the inputs and the output:

Content image is a photo that my parents took of the Grand Canyon:

Grand Canyon 3264x1840.jpgRequest:  Deepdream frontend.  

Style image is one of my many Vlad Studio wallpapers:

vladstudio_a_girl_under_a_thousand_blankets_1920x1200.jpgRequest:  Deepdream frontend.  

And the output:

out.pngRequest:  Deepdream frontend.  

It actually output 10 different images. I'm not sure what they are. But it seems to be progressively refined until it gets to the final output image. The last few are almost indistinguishable from the final image. Here are some of the other images it output while building the final image:

out_100.pngRequest:  Deepdream frontend.  
out_200.pngRequest:  Deepdream frontend.  
out_300.pngRequest:  Deepdream frontend.  
out_400.pngRequest:  Deepdream frontend.  

EDIT: I looked at the readme.md and found another parameter I need to pass in to increase the image size. -image_size [width-size]. I suspect that going larger than the default 512 will result in more memory-related failures though. . .

EDIT 2: Yup. I tried 1920 and it gave me that "Killed" error. I tried it again at 1024 and it said something about running out of memory. Too bad... Maybe it would work better on real hardware. It'd be nice to dedicate my entire 16GB RAM to it. I wonder if it would work setting it all up from a LiveCD boot. . .

« Last Edit: October 04, 2015, 02:38:05 AM by Deozaan »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #37 on: October 04, 2015, 10:52:07 AM »
I made another one with the same content image and a different source image:

Style image:
Geometric Landscape - Tropical Island 4000x2000.jpgRequest:  Deepdream frontend.  

Output:
Island Canyon.pngRequest:  Deepdream frontend.  

And here are some of the images leading up to the final image:

out_100.pngRequest:  Deepdream frontend.  
out_200.pngRequest:  Deepdream frontend.  
out_300.pngRequest:  Deepdream frontend.  


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,245
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #38 on: October 04, 2015, 10:53:10 AM »
great work, deo.  :up:

maybe you can post a little tutorial on how you got it all running..

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #39 on: October 04, 2015, 01:03:10 PM »
great work, deo.  :up:

maybe you can post a little tutorial on how you got it all running..

I pretty much just followed the tutorial, with a few slight changes where it didn't go into detail or was wrong (such as it forgetting to tell you to go into the DeepStyle\neural-style directory before typing in a command, or what permissions to give yourself). Then I cranked up the RAM of the VM to 8GB. I heard from someone else that it will work with slightly less RAM.

It takes a long time. I'm not sure exactly how long because I don't babysit it. I just finished another one while typing this up, and it took a little over  2 hours. But maybe that's dependent on the source & style images.

Someone please give me more interesting images to try out on this thing. :)

Here's my latest result. Same Grand Canyon Image, but this time in the style of a Legend of Zelda wallpaper:

Style Image:
Zelda Link Between Worlds - Reflection - 1920x1080.jpgRequest:  Deepdream frontend.  

Output image:
Grand Canyon Link.pngRequest:  Deepdream frontend.  


JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,717
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #40 on: October 04, 2015, 01:19:16 PM »
I want to try this on some images for a private project, but I'm afraid you probably won't find them interesting at all. ;) I keep trying to get an instance going at Terminal.com, but it says no GPU instances available constantly. :(

- Oshyan

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #41 on: October 04, 2015, 02:10:02 PM »
I want to try this on some images for a private project, but I'm afraid you probably won't find them interesting at all. ;)

If you want to keep the images private, then PM me a link to a couple images (both source and style) and I'll do it even if I don't find them interesting. :)


tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 10,237
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #42 on: October 04, 2015, 02:17:33 PM »
And the output:

out.pngRequest:  Deepdream frontend.  

I especially liked this one :up:
Tom

JavaJones

  • Review 2.0 Designer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,717
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #43 on: October 04, 2015, 02:52:49 PM »
Thanks Deo, you rock!

- Oshyna

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #44 on: October 04, 2015, 03:19:46 PM »
Here's my latest:

out.pngRequest:  Deepdream frontend.  

The style image should be familiar to some here:

Reboot - 2007.jpgRequest:  Deepdream frontend.  


Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #45 on: October 04, 2015, 03:21:50 PM »
I especially liked this one :up:

Agreed! So far this is the only one that really looks good, IMO. Maybe it's time for a different/better source image.


Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,041
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #46 on: October 04, 2015, 03:29:56 PM »
Quote
... the output is mysteriously only 512x288. Weird. I was hoping for something I could use as a wallpaper.
And the output: (attachthumb=3)
I especially liked this one :up:
I especially liked this one (attachthumb=3)
Agreed! So far this is the only one that really looks good, IMO.

^ I agree it would be really fine as a wallpaper.


out.png

tsaint

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 451
  • Hi from the a*** end of the earth
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #47 on: October 11, 2015, 03:06:52 AM »
He says "nearly", unfortunately. I wish we had @mentions. Tsaint, did you ever get this fully working? Anyone else? I continue to be very intrigued and occasionally very impressed with the results!

- Oshyan
No, he gave up and went camping instead! My partner got a job 1500 km away and it's a nice "commute" to see her, with lots of stops along the way

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 7,640
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #48 on: May 22, 2016, 02:01:42 AM »
OK, does this count as an easy enough front-end for you?

https://DeepArt.io/


kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 464
    • View Profile
    • Donate to Member
Re: Request: Deepdream frontend.
« Reply #49 on: May 22, 2016, 01:20:06 PM »
OK, does this count as an easy enough front-end for you?
https://DeepArt.io/
Yea this one is pretty cool.  There have been a few free sites that have popped up.  Unfortunately none offer HD output.  This one is cool though, because you can input your own styles...