You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

eval.py 862 B

1234567891011121314151617181920212223242526272829
  1. import logging
  2. import neptune
  3. from validate_utils import validate
  4. LOG = logging.getLogger(__name__)
  5. max_epochs = 1
  6. def main():
  7. # load dataset.
  8. test_data = neptune.load_test_dataset(data_format='txt', with_image=False)
  9. # read parameters from deployment config.
  10. class_names = neptune.context.get_parameters("class_names")
  11. class_names = [label.strip() for label in class_names.split(',')]
  12. input_shape = neptune.context.get_parameters("input_shape")
  13. input_shape = tuple(int(shape) for shape in input_shape.split(','))
  14. model = validate
  15. neptune.incremental_learning.evaluate(model=model,
  16. test_data=test_data,
  17. class_names=class_names,
  18. input_shape=input_shape)
  19. if __name__ == '__main__':
  20. main()