Skip to content
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

Update model version number for TensorFlow + Keras training #65

Open
arun-gupta opened this issue Apr 16, 2019 · 0 comments
Open

Update model version number for TensorFlow + Keras training #65

arun-gupta opened this issue Apr 16, 2019 · 0 comments

Comments

@arun-gupta
Copy link
Contributor

Training Fashion-MNIST model using TensorFlow and Keras as explained at

Running the training gives:

Test accuracy: 0.885599970818
Traceback (most recent call last):
  File "mnist.py", line 89, in <module>
    main()
  File "mnist.py", line 86, in main
    export_model(model, args.model_export_path)
  File "mnist.py", line 69, in export_model
    outputs={t.name:t for t in model.outputs})
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/deprecation.py", line 324, in new_func
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/saved_model/simple_save.py", line 83, in simple_save
    b = builder.SavedModelBuilder(export_dir)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/saved_model/builder_impl.py", line 425, in __init__
    super(SavedModelBuilder, self).__init__(export_dir=export_dir)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/saved_model/builder_impl.py", line 100, in __init__
    "directory: %s" % export_dir)
AssertionError: Export directory already exists. Please specify a different export directory: s3://eks-ml-example/mnist/export/1

This error message should not come. Instead the model should be persisted with a new version number.

@Jeffwan will look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant