nav3en / style_transfer_photo Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
For getting W/B from VGG19, I got error log as TITLE said, and after comparing with other source codes, I try to update as below (swtich '2' to '0'), then, the error disappeared, is it right? please help to find out reason.
def get_weights(vgg_layers, i):
#weights = vgg_layers[i][0][0][2][0][0] -- original codes of author and report error
weights = vgg_layers[i][0][0][0][0][0]
W = tf.constant(weights)
return W
def get_bias(vgg_layers, i):
#bias = vgg_layers[i][0][0][2][0][1] -- original codes of author and report error
bias = vgg_layers[i][0][0][0][0][1]
b = tf.constant(np.reshape(bias, (bias.size)))
return b
# photorealism regularization term
# laplacian_mat = "./image_input/test_lap.npz"
CSR = load_sparse_csr(laplacian_mat)
Does image style transfer(not for video) need NPZ file or not? If need, could you please append it in source codes?
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.