Create a 'validate_plugin.py' spec and document it in the OpenVisionCapsules Readme
apockill opened this issue · 6 comments
It should using the vcap.testing utilities.
@apockill Have you been working on this issue ? I want to start working on it. Some headups will also be good.
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:
-
A script under
tools/verify_capsule_spec/main.py
-
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
ortools/verify_capsule_spec/main.py --capsule CAPSULE/ --images-dir /path/to/directory/with/images
-
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.
- 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.
Hey @apockill can I work on this issue?
Absolutely, anyone is free to work on this feature.
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?
Hey @apockill should I continue?