-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't saved model in train_model.py #3
Comments
Hi yoshall, |
Hi yoshall, |
Hi
|
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. |
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
The text was updated successfully, but these errors were encountered: