Created
May 30, 2018 21:29
-
-
Save bileschi/2c065740282eba1d9a05c87fe5d73ee4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python ./min_repro.py | |
/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. | |
from ._conv import register_converters as _register_converters | |
Using TensorFlow backend. | |
WARNING:tensorflow:From /usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py:198: retry (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version. | |
Instructions for updating: | |
Use the retry module or similar alternatives. | |
loading model... | |
/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/keras/models.py:255: UserWarning: No training configuration found in save file: the model was *not* compiled. Compile it manually. | |
warnings.warn('No training configuration found in save file: ' | |
_________________________________________________________________ | |
Layer (type) Output Shape Param # | |
================================================================= | |
resnet50 (Model) (None, None, None, 2048) 23587712 | |
_________________________________________________________________ | |
reshape_2 (Reshape) (None, 1, 1, 2048) 0 | |
_________________________________________________________________ | |
sequential_2 (Sequential) (None, 133) 272517 | |
================================================================= | |
Total params: 23,860,229 | |
Trainable params: 23,807,109 | |
Non-trainable params: 53,120 | |
_________________________________________________________________ | |
preds(1, 133) | |
about to run tfjs.converters.load_keras_model('./letstry3/model.json') | |
Traceback (most recent call last): | |
File "./min_repro.py", line 36, in <module> | |
model_prime = tfjs.converters.load_keras_model('./letstry3/model.json') | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflowjs/converters/keras_tfjs_loader.py", line 208, in load_keras_model | |
use_unique_name_scope=use_unique_name_scope) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflowjs/converters/keras_tfjs_loader.py", line 75, in _deserialize_keras_model | |
model.set_weights(weights_list) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/keras/models.py", line 719, in set_weights | |
self.model.set_weights(weights) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/keras/engine/topology.py", line 2027, in set_weights | |
K.batch_set_value(tuples) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 2365, in batch_set_value | |
assign_op = x.assign(assign_placeholder) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 609, in assign | |
return state_ops.assign(self._variable, value, use_locking=use_locking) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/ops/state_ops.py", line 281, in assign | |
validate_shape=validate_shape) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_state_ops.py", line 61, in assign | |
use_locking=use_locking, name=name) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper | |
op_def=op_def) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3292, in create_op | |
compute_device=compute_device) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3332, in _create_op_helper | |
set_shapes_for_outputs(op) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2496, in set_shapes_for_outputs | |
return _set_shapes_for_outputs(op) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2469, in _set_shapes_for_outputs | |
shapes = shape_func(op) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2399, in call_with_requiring | |
return call_cpp_shape_fn(op, require_shape_fn=True) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 627, in call_cpp_shape_fn | |
require_shape_fn) | |
File "/usr/local/google/home/bileschi/env/a/local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 691, in _call_cpp_shape_fn_impl | |
raise ValueError(err.message) | |
ValueError: Shapes must be equal rank, but are 1 and 2 for 'Assign_212' (op: 'Assign') with input shapes: [64], [2048,133]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment