eriklindernoren / pytorch-deep-dream Goto Github PK
View Code? Open in Web Editor NEWMinimal PyTorch implementation of Deep Dream
License: MIT License
Minimal PyTorch implementation of Deep Dream
License: MIT License
On lines 17 and 73, torch.cuda.is_available
should instead be torch.cuda.is_available()
.
err
When I run this: python deep_dream.py --input_image images/supermarket.jpg
I get the following error"
invalid value encountered in true_divide
zoom = (numpy.array(input.shape) - 1) / zoom_div
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/ndimage/interpolation.py:532: UserWarning: From scipy 0.13.0, the output shape of zoom() is calculated with round() instead of int() - for these inputs the size of the returned array has changed.
"the returned array has changed.", UserWarning)
Dreaming: 10%|โ | 1/10 [00:01<00:11, 1.23s/it]
Traceback (most recent call last):
File "deep_dream.py", line 86, in
num_octaves=args.num_octaves,
File "deep_dream.py", line 51, in deep_dream
input_image = octave_base + detail
ValueError: operands could not be broadcast together with shapes (1,3,31,44) (1,3,22,31)
Currently the code fails if using Cuda. Line 24 should read
- image.data += norm_lr * image.grad.data
+ image.data += Tensor([norm_lr]) * image.grad.data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.