TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Deep Dreams with Caffe

245 pointsby miketalmost 10 years ago

19 comments

karpathyalmost 10 years ago
One thing people might not realize (I&#x27;m not sure how obvious it is) is that these renders depend strongly on the statistics of the training data used for the ConvNet. In particular you&#x27;re seeing a lot of dog faces because there is a large number of dog classes in the ImageNet dataset (several hundred classes out of 1000 are dogs), so the ConvNet allocates a lot of its capacity to worrying about their fine-grained features.<p>In particular, if you train ConvNets on other data you will get very different hallucinations. It might be interesting to train (or even fine-tune) the networks on different data and see how the results vary. For example, different medical datasets, or datasets made entirely of faces (e.g. Faces in the Wild data), galaxies, etc.<p>It&#x27;s also possible to take Image Captioning models and use the same idea to hallucinate images that are very likely for some specific sentence. There are a lot of fun ideas to play with.
评论 #9889515 未加载
评论 #9818605 未加载
zan2434almost 10 years ago
<a href="http:&#x2F;&#x2F;deepdreams.zainshah.net" rel="nofollow">http:&#x2F;&#x2F;deepdreams.zainshah.net</a> spun up a simple web server so you can try your own! Please be gentle :)
评论 #9817741 未加载
评论 #9817982 未加载
评论 #9817147 未加载
评论 #9819629 未加载
评论 #9817250 未加载
评论 #9819185 未加载
评论 #9828799 未加载
评论 #9817365 未加载
Liquixalmost 10 years ago
The visuals generated by the neural network remind me of visuals experienced under the influence of psilocybin or LSD. I wonder if I am making an unjust leap or if there is a similar organic process (searching for familiar patterns) taking place in the mind? Fascinating, thanks for sharing.
评论 #9816880 未加载
评论 #9819290 未加载
评论 #9816989 未加载
hellbanneralmost 10 years ago
&quot;Be careful running the code above, it can bring you into very strange realms!&quot;<p>Reminds me of Charlie Stross&#x27;s new novel,<p>&quot;A brief recap: magic is the name given to the practice of manipulating the ultrastructure of reality by carrying out mathematical operations. We live in a multiverse, and certain operators trigger echoes in the Platonic realm of mathematical truth, echoes which can be amplified and fed back into our (and other) realities. Computers, being machines for executing mathematical operations at very high speed, are useful to us as occult engines. Likewise, some of us have the ability to carry out magical operations in our own heads, albeit at terrible cost.&quot;<p><a href="http:&#x2F;&#x2F;www.tor.com&#x2F;2015&#x2F;06&#x2F;30&#x2F;excerpt-the-annihilation-score-charles-stross&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.tor.com&#x2F;2015&#x2F;06&#x2F;30&#x2F;excerpt-the-annihilation-score...</a>
评论 #9889522 未加载
评论 #9816355 未加载
malkiaalmost 10 years ago
Here are some images I&#x27;ve done - <a href="https:&#x2F;&#x2F;www.facebook.com&#x2F;media&#x2F;set&#x2F;?set=a.720197931442169.1073741832.100003559066571&amp;type=1&amp;l=5513aa040e" rel="nofollow">https:&#x2F;&#x2F;www.facebook.com&#x2F;media&#x2F;set&#x2F;?set=a.720197931442169.10...</a>
评论 #9817111 未加载
评论 #9818380 未加载
评论 #9837165 未加载
评论 #9817074 未加载
cingalmost 10 years ago
Great, I got the dependencies installed on OSX and I&#x27;m already monsterifying a head shot for LinkedIn. Now, to find a way to get this working in real time with a webcam...
评论 #9816750 未加载
benannealmost 10 years ago
We sort of reverse-engineered this last week and set up a stream with live interactive &quot;hallucinations&quot;: <a href="http:&#x2F;&#x2F;www.twitch.tv&#x2F;317070" rel="nofollow">http:&#x2F;&#x2F;www.twitch.tv&#x2F;317070</a><p>You can suggest what objects the network should dream about (combinations of two are also possible).<p>Our code will be published on GitHub later today!
评论 #9819612 未加载
pierrecalmost 10 years ago
Amazing that it easily runs on consumer hardware, this dispels suspicions that a Google cluster was necessary for these results.<p>I&#x27;m wondering if it&#x27;s possible to use this with a model that was trained on a database without labels, just pictures. Is such a thing even possible? For this particular application, labeling and categories are ultimately superfluous, but are they required in order to get there?
nicklovescodealmost 10 years ago
Can someone please create a SASS interface to play with it? Would love to send this to family&#x2F;friends who can&#x27;t easily spin up the code.
评论 #9817126 未加载
spotalmost 10 years ago
A simpler version of this idea (making an image A out of matching pieces of a set of images B) was implemented in the early 90s and released as open source: <a href="http:&#x2F;&#x2F;draves.org&#x2F;fuse&#x2F;" rel="nofollow">http:&#x2F;&#x2F;draves.org&#x2F;fuse&#x2F;</a>
rsp1984almost 10 years ago
I always wonder why sometimes the system finds faces and other elements in essentially untextured &#x2F; homogeneous parts of images. Wouldn&#x27;t there be some sort of &quot;data term&quot; in the energy functional that would suppress these results and&#x2F;or move them to other parts of the image?<p>Perhaps this is working entirely differently and I&#x27;m thinking too much in the classical computer vision realm. Would love some explanation though.
评论 #9819762 未加载
rayalezalmost 10 years ago
This is really cool. I wonder what it would look like applied to video.<p>Also I didn&#x27;t know that github displays .ipynb, that&#x27;s pretty awesome.
评论 #9817006 未加载
johnwatson11218almost 10 years ago
Does anyone know if this technique can be used to slurp up a database and produce &quot;typical&quot; records for populating a test database? This is a problem that I struggled with a few years ago and still haven&#x27;t found a good automated solution.
评论 #9816855 未加载
taliesinbalmost 10 years ago
The dogs, eyes, and Dali-like bird-dogs are really cool. I&#x27;ve seen some insects, too, but not very often.<p>Are there any other flavors of hallucination? Why all the dogs? I suppose ImageNet has a lot of dog varieties in its category list.
malkiaalmost 10 years ago
A Trip To The Moon - <a href="http:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;EkAkv" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;a&#x2F;EkAkv</a>
sovaalmost 10 years ago
So awesomely trippy, love it.
llSourcellalmost 10 years ago
ugh so annoying to compile can someone make this easier
评论 #9830572 未加载
Nordavindalmost 10 years ago
But... How do you do this?
armabalmost 10 years ago
Such things is the reason why I like scientific-friendly Python community.