chinazm
chinazm
Using training hooks and evaluation hooks can do both best model saving and early stopping. EstimatorSpec( mode=spec.mode, predictions=spec.predictions, loss=spec.loss, train_op=spec.train_op, eval_metric_ops=spec.eval_metric_ops, export_outputs=spec.export_outputs, training_chief_hooks=spec.training_chief_hooks, training_hooks=training_hooks, scaffold=spec.scaffold, evaluation_hooks=evaluation_hooks)
I would refer to this feature request: https://github.com/aws/sagemaker-tensorflow-container/issues/75
Thanks @nadiaya , yes, i did this thing and I also ran the h5py.run_tests() successfully, however, when we load the weights from h5 file: model = tf.keras.models.model_from_json(d) model.load_weights(model_weight_path) it still...
I saw the new release of sagemaker 1.1.1 supporting the requirments.txt packages. However, even we install the package, it still reports the error: > 2018-03-07 00:07:28,648 INFO - root -...
Thank you Andre @andremoeller , your answer is very helpful. However, sometime we need to use the model weight from the imagenet, like tf.keras.applications.inception_v3.InceptionV3(weights='imagenet') tf.keras.applications.resnet50.ResNet50(weights='imagenet') then that will raise the...
In addition, @andremoeller , I think I was using the requirements.txt in the sagemaker 1.1.1 (new feature), not Installing h5py via subprocess.call. I think this will install the dependencies first...
Sorry I may not make the question clear. When do the training, you can specify the requirements_file, in Tensorflow. However, when you deploy the model for serving, estimator.deploy(initial_instance_count=1, instance_type='ml.c4.xlarge'), I...
I think this is related to https://github.com/aws/sagemaker-python-sdk/issues/91