llsourcell / ai_artist Goto Github PK
View Code? Open in Web Editor NEWAI Artist for Machine Learning for Hackers #5
AI Artist for Machine Learning for Hackers #5
Traceback (most recent call last):
File "/Users/MyName/Desktop/Artist/Network.py", line 292, in
load_weights(weights_path, model)
File "/Users/MyName/Desktop/Artist/Network.py", line 85, in load_weights
model.layers[k].set_weights(weights)
File "/Users/MyName/anaconda/lib/python3.5/site-packages/keras/engine/topology.py", line 889, in set_weights
'provided weight shape ' + str(w.shape))
Exception: Layer weight shape (3, 3, 512, 64) not compatible with provided weight shape (64, 3, 3, 3)
Tensorflow doesnt work on 3.7 reeeeeeeeeee
I added the
K.set_image_dim_ordering('th')
To get past the _message error now I am receiving this error?
(Neural-Style-Transfer-master) maxss280@ubuntu:~/Scripts/AI_Artist/AI_Artist$ python Network.py --base_image_path ./People_walking_in_Hyde_Park,_Sydney.jpg --style_reference_image_path ./il_570xN.1013273490_regc.jpg --result_prefix ./output.jpg
Using TensorFlow backend.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Traceback (most recent call last):
File "Network.py", line 248, in <module>
combination_image], axis=0)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.0.7-py2.7.egg/keras/backend/tensorflow_backend.py", line 669, in concatenate
return tf.concat(axis, tensors)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1047, in concat
dtype=dtypes.int32).get_shape(
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 651, in convert_to_tensor
as_ref=False)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 716, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 176, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 165, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 367, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).__name__))
TypeError: Expected int32, got <tensorflow.python.ops.variables.Variable object at 0x7f7a51283c10> of type 'Variable' instead.
Hi! I just tried to run the project, and I'm getting the following error:
Traceback (most recent call last):
File "network.py", line 252, in <module>
first_layer.set_input(input_tensor, shape=(3, 3, img_width, img_height))
AttributeError: 'ZeroPadding2D' object has no attribute 'set_input'
Thanks in advance for pointing me in the right direction!
Traceback (most recent call last):
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/common_shapes.py", line 594, in call_cpp_shape_fn
status)
File "/usr/lib/python3.4/contextlib.py", line 66, in exit
next(self.gen)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/errors.py", line 463, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors.InvalidArgumentError: Negative dimension size caused by subtracting 2 from 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "Network.py", line 265, in
model.add(AveragePooling2D((2, 2), strides=(2, 2)))
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/models.py", line 308, in add
output_tensor = layer(self.outputs[0])
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/engine/topology.py", line 514, in call
self.add_inbound_node(inbound_layers, node_indices, tensor_indices)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/engine/topology.py", line 572, in add_inbound_node
Node.create_node(self, inbound_layers, node_indices, tensor_indices)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/engine/topology.py", line 149, in create_node
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/layers/pooling.py", line 162, in call
dim_ordering=self.dim_ordering)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/layers/pooling.py", line 254, in _pooling_function
border_mode, dim_ordering, pool_mode='avg')
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/keras/backend/tensorflow_backend.py", line 1703, in pool2d
x = tf.nn.avg_pool(x, pool_size, strides, padding=padding)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/ops/nn_ops.py", line 822, in avg_pool
name=name)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 48, in _avg_pool
data_format=data_format, name=name)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op
op_def=op_def)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 2382, in create_op
set_shapes_for_outputs(ret)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/ops.py", line 1783, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/shiyanlou/Code/Transform_to_Artist/venv/lib/python3.4/site-packages/tensorflow/python/framework/common_shapes.py", line 596, in call_cpp_shape_fn
raise ValueError(err.message)
ValueError: Negative dimension size caused by subtracting 2 from 1
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.