Skip to content

CLI command can only be invoked by " - " rather than " _ " in the original setting. #27

@JustinAsdz

Description

@JustinAsdz

I was just tried to run the get one image's score as
python nima/cli.py get_image_score --path_to_model_weight ./pretrain-model.pth --path_to_image test_image.jpg
while find below error, then I check the help info, and the program run correctly if I use "get-image-score" as in help info.
I wander why this would occur when the defination and call function in cli.py are all using " _ ".

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions