erilyth / deeplearning-challenges Goto Github PK
View Code? Open in Web Editor NEWCodes for weekly challenges on Deep Learning by Siraj
License: MIT License
Codes for weekly challenges on Deep Learning by Siraj
License: MIT License
I had to do
totalY = np.concatenate( totalY, axis=0 )
before doing
totalY = to_categorical(totalY, nb_classes=11)
hi, I am looking for NMT so i came across your code and I am going to translate Indian language so do have any idea to input format in traning the dataset (and I am new to deep learning )
I'm using tensorflow 1.0.1 and python 2.7 to run this code and i have limited the steps to 600,i'm unable understand the error.Thank you.Following is the error i'm getting.
Reading model parameters from /home/alind/langaugetranslator/fr-en/translate.ckpt-600
W tensorflow/core/framework/op_kernel.cc:993] Not found: Key Variable_3 not found in checkpoint
W tensorflow/core/framework/op_kernel.cc:993] Not found: Key Variable_2 not found in checkpoint
Traceback (most recent call last):
File "translate.py", line 271, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "translate.py", line 268, in main
test_BLEU()
File "translate.py", line 205, in test_BLEU
model = create_model(sess, True, False)
File "translate.py", line 102, in create_model
model.saver.restore(session, ckpt.model_checkpoint_path)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1428, in restore
{self.saver_def.filename_tensor_name: save_path})
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 965, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1015, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1035, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Key Variable_3 not found in checkpoint
[[Node: save_1/RestoreV2_3 = RestoreV2[dtypes=[DT_INT32], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_3/tensor_names, save_1/RestoreV2_3/shape_and_slices)]]
Caused by op u'save_1/RestoreV2_3', defined at:
File "translate.py", line 271, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "translate.py", line 268, in main
test_BLEU()
File "translate.py", line 205, in test_BLEU
model = create_model(sess, True, False)
File "translate.py", line 97, in create_model
dtype=dtype)
File "/home/alind/langaugetranslator/seq2seq_model.py", line 198, in init
self.saver = tf.train.Saver(tf.global_variables())
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1040, in init
self.build()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1070, in build
restore_sequentially=self._restore_sequentially)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 675, in build
restore_sequentially, reshape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps
tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 242, in restore_op
[spec.tensor.dtype])[0])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2
dtypes=dtypes, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2327, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1226, in init
self._traceback = _extract_stack()
NotFoundError (see above for traceback): Key Variable_3 not found in checkpoint
[[Node: save_1/RestoreV2_3 = RestoreV2[dtypes=[DT_INT32], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save_1/Const_0, save_1/RestoreV2_3/tensor_names, save_1/RestoreV2_3/shape_and_slices)]]
Using TensorFlow backend.
Traceback (most recent call last):
File "createmusic.py", line 37, in
notesa = zip(*notes)[0]
TypeError: 'zip' object is not subscriptable
NameError Traceback (most recent call last)
in ()
6 #combination_features = layer_features[2, :, :, :]
7
----> 8 loss += content_weight * content_loss(content_image_features,
9 combination_features)
NameError: name 'content_image_features' is not defined
I'm using python 3 and tensorflow 1.0.0
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.