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

deepaas-cli always expects get_predict_args() and get_train_args() #189

Open
vykozlov opened this issue Sep 26, 2024 · 0 comments
Open

deepaas-cli always expects get_predict_args() and get_train_args() #189

vykozlov opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@vykozlov
Copy link
Contributor

vykozlov commented Sep 26, 2024

Description

Some AI models provide only prediction, therefore "get_train_args()" function does not exist. It does not cause an error in deepaas-run but deepaas-cli by default always expects both of the "get_train_args()" and "get_predict_args()" to be present.

Steps to Reproduce

  1. in a AI module comment "get_train_args()"
  2. call deepaas-cli predict --help
  3. see error as e.g.
train_args = _fields_to_dict(model_obj.get_train_args())
                                ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'zooprocess_multiple_separator.api' has no attribute 'get_train_args'. Did you mean: 'get_predict_args'?

Expected behavior:

deepaas-cli is able to deal with cases when only predict() or train() is available

Versions

DEEPaaS API 2.5.2 and earlier

@vykozlov vykozlov added the bug Something isn't working label Sep 26, 2024
@vykozlov vykozlov self-assigned this Sep 26, 2024
@vykozlov vykozlov changed the title deepaas-cli always expecte get_predict_args() and get_train_args() deepaas-cli always expects get_predict_args() and get_train_args() Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant