Skip to content

Deep cli

Álvaro López García requested to merge deep_cli into master

Created by: vykozlov

Description

Add deepaas-cli script which provides command line interface (CLI) to DEEPaaS models that are loaded through the deepaas.v2.models entrypoint API. One gets access to the same get_metadata, warm, predict, and train methods with all corresponding options as with DEEPaaS REST API. To get all available flags for the method, one has to call deepaas-cli <method> --help.

added/modified files:

  • added cli.py
  • modified setup.cfg
  • added deepaas-cli.rst

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update
  • This change is a documentation update

How Has This Been Tested?

I can get_metadata with the dogs_breed_det, imgclas, obj_detect_pytorch applications, do train, predict with dogs_breed_det, predict with obj_detect_pytorch (this is what was tested by, not that other variants do not work). MODS application (Stefan) also passed all tests, i.e. able to do get_metadata, predict, train

  • fully tested on dogs_breed_det, partial test on imgclas, obj_detect_pytorch
  • fully tested on MODS

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Merge request reports