Skip to content

Some hyperparameters not being used in Sagemaker Image-classification #310

Description

@vishav

Please fill out the form below.

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans):
  • Framework Version:
  • Python Version:
  • CPU or GPU:
  • Python SDK Version:
  • Are you using a custom image:

Describe the problem

num_layers = 18
image_shape = "3,224,224"
num_training_samples = 3988
num_classes = 48
mini_batch_size =  64
epochs = 60
optimizer = 'adam'
learning_rate = 0.1
use_lr_scheduler = 1
lr_scheduler_factor = 0.1
lr_scheduler_step = '10,20,30,40,50,59'
top_k=2
use_pretrained_model = 1
augmentation_type = 'crop_color_transform'
  • I am able to start training without any issue. But when I look at the logs produced, I see following messages:
[07/23/2018 18:40:34 INFO 140330486703936] Reading provided configuration from /opt/ml/input/config/hyperparameters.json: {u'learning_rate': u'0.1', u'use_pretrained_model': u'1', u'epochs': u'60', u'num_training_samples': u'3988', u'num_layers': u'18', u'mini_batch_size': u'64', u'image_shape': u'3,224,224', u'num_classes': u'48'}
[07/23/2018 18:40:34 INFO 140330486703936] lr_scheduler_step defined without lr_scheduler_factor, will be ignored...
[07/23/2018 18:40:34 INFO 140330486703936] augmentation_type: None
[07/23/2018 18:40:34 INFO 140330486703936] checkpoint_frequency: 60

Why sagemaker is not using the optimizer, lr_scheduler_factor, augmentation_type that I have mentioned?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions