Open zwd2016 opened 6 years ago
Hi yoshall, thanks for contribution! I also have the problem above.And I wonder if it is caused by the sample_data. Look forward to receiving your kind reply soon. Thank you very much. best wishes maple
Hi yoshall, I have solved the problem above by changing some parameter values as you mentioned in the train.ipynb.Thank you. However,I still wonder the process you perform on the raw data.I can't thank you more if you could published the code processing the raw data. thank you for patience. yours sincerely Maple
Hi
I have a Problem in running the test_model.py
, the shape of model.phs['preds']
and feed_dict
is totally different.
error information :
ValueError Traceback (most recent call last)
in () 22 print(model.phs['preds']) 23 # re-scale predicted labels ---> 24 batch_preds = sess.run(model.phs['preds'], feed_dict) 25 batch_preds = np.swapaxes(batch_preds, 0, 1) 26 batch_preds = np.reshape(batch_preds, [batch_preds.shape[0], -1]) /home/user/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata) 875 try: 876 result = self._run(None, fetches, feed_dict, options_ptr, --> 877 run_metadata_ptr) 878 if run_metadata: 879 proto_data = tf_session.TF_GetBuffer(run_metadata_ptr) /home/user/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata) 1074 'which has shape %r' % 1075 (np_val.shape, subfeed_t.name, -> 1076 str(subfeed_t.get_shape()))) 1077 if not self.graph.is_feedable(subfeed_t): 1078 raise ValueError('Tensor %s may not be fed.' % subfeed_t) ValueError: Cannot feed value of shape (0,) for Tensor 'inputs/global_inputs:0', which has shape '(?, 12, 35)' Look forward to your reply. Thanks a lot. best wishes.
Hi yoshall, I have solved the problem above by changing some parameter values as you mentioned in the train.ipynb.Thank you. However,I still wonder the process you perform on the raw data.I can't thank you more if you could published the code processing the raw data. thank you for patience. yours sincerely Maple
Hi,I meet the same problem above, but I don't know how to solve it. Could you please tell me how do you change the parameters in detail?I could not thank you more if you offer some help.
Hi yoshall, I have solved the problem above by changing some parameter values as you mentioned in the train.ipynb.Thank you. However,I still wonder the process you perform on the raw data.I can't thank you more if you could published the code processing the raw data. thank you for patience. yours sincerely Maple
I also want to know which field in the pre-processed sample_data represents the residual chlorine content, in which variable is the sequence number, which spans several days.Could you please tell me how do you change the parameters in detail?I could not thank you more if you offer some help.
Hi yoshall,
I'd like to implement you code using sample_data. However, I got some troubles. You can see this information:
total parameters: 554054 ----------epoch 0----------- ----------epoch 1----------- ----------epoch 2----------- ----------epoch 3----------- ----------epoch 4----------- ----------epoch 5----------- ----------epoch 6----------- ----------epoch 7----------- ----------epoch 8----------- ----------epoch 9----------- ----------epoch 10----------- ----------epoch 11----------- ----------epoch 12----------- ----------epoch 13----------- ----------epoch 14----------- stop training !!!
May be not run this code:if valid_loss < min(valid_losses[:-1]): print('iter {}\tvalid_loss = {:.6f}\tmodel saved!!'.format( iter, valid_loss)) saver.save(sess, model_dir + 'model_{}.ckpt'.format(iter)) saver.save(sess, model_dir + 'final_model.ckpt') else: print('iter {}\tvalid_loss = {:.6f}\t'.format( iter, valid_loss))
So,the previously saved model cannot be loaded when running the test_model.py file.
NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for ./logs/GeoMAN-12-6-2-128-0.30-0.001/saved_models/final_model.ckpt [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_INT32, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]
Look forward to receiving your kind reply soon. Thank you very much. best wishes, wendong