open_vision_capsules icon indicating copy to clipboard operation
open_vision_capsules copied to clipboard

Create a 'validate_plugin.py' spec and document it in the OpenVisionCapsules Readme

Open apockill opened this issue 4 years ago • 6 comments

It should using the vcap.testing utilities.

apockill avatar Jan 30 '20 20:01 apockill

@apockill Have you been working on this issue ? I want to start working on it. Some headups will also be good.

sanketsans avatar Nov 16 '20 17:11 sanketsans

Hi sanketsan,

Thank you for reaching out and offering to contribute! I haven't been working on this particular issue, so help is always appreciated.

Here's what we would want:

  1. A script under tools/verify_capsule_spec/main.py

  2. You should be able to pass in a packaged or unpackaged capsule, and it should run verification tests on it. Example usage of the application: tools/verify_capsule_spec/main.py --capsule CAPSULE.cap --images-dir /path/to/directory/with/images or tools/verify_capsule_spec/main.py --capsule CAPSULE/ --images-dir /path/to/directory/with/images

  3. Example output of what we might expect from this script

Loading Capsule {capsule path}
Running Capsule Verification Tests:
Running Inference on {# of images} stored in {image directory path}

Verification tests complete! Your capsule performs as expected.

If a traceback happens, it should catch it and print it back using a formatted traceback (maybe using `traceback.format_exc())), and the application should exit with a non-zero exit code.

  1. Internally, the script should be essentially running the test utility written under the vcap.testing.perform_capsule_tests function, and passing in all of the images stored in that directory.

apockill avatar Nov 18 '20 19:11 apockill

Hey @apockill can I work on this issue?

Vardhan-Kaashikar avatar Jan 07 '23 15:01 Vardhan-Kaashikar

Absolutely, anyone is free to work on this feature.

apockill avatar Jan 08 '23 06:01 apockill

Hey I was just trying to make use of the example capsules as given in the Readme.md file and came across a common error in most of the files, where we are fetching functions from other files but since vcap folder has a sub folder named "vcap" which is not being added while fetching functions it is causing errors (for example: "vcap.node_description" is being searcher instead of "vcap.vcap.node_description" as shown in the screenshot below), should I fix all the files and then start with this issue?

Also am I heading in the right direction? opencv error

Vardhan-Kaashikar avatar Jan 08 '23 09:01 Vardhan-Kaashikar

Hey @apockill should I continue?

Vardhan-Kaashikar avatar Jan 31 '23 18:01 Vardhan-Kaashikar