-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optimize for visual prompting to 2.0 (#3040)
* Fix return's shape when all predicted masks are zero * Swap order of prompts in segment_anything.py * Enable to export segment anything modules respectively * Update prompt order and refactoring * Fix `return_single_mask` to True * Add OVIR inference logic * Updates for integration test * precommit * Update prompt getter * (WIP) Update zero-shot * (WIP) Internalize preprocess into model * Update reference infos to buffer * Update reference_info path * Enable standalone infer logic * Update location of `-load_latest_reference_info` for OVModel * Update recipes * Enable `infer` ov inference * Enable standalone `infer` logic on OVModel * precommit * Update unittest * Update for integration test * precommit * Fix * Fix * Fix * Fix intg tests * Enable to update `export_args` to `deploy_cfg` * Update with walrus * Update to use dict labels * Change openvino model names * Update compatibility with zero-shot * Refactoring for unnecessary assigned variables * Avoid repeatedly executing `torch.cat` * precommit * Fix unit test * Update variable name * Add `example_inputs` in anomaly * Fix unit test * Fix * Update `model_names` for visual prompting * precommit * Not to include other params in `example_inputs` * Disable condition for visual prompting * Update to `example_inputs` * Remove unused kwargs * Update * Remove unused parts * Update exported models' names * Remove `example_inputs` * Add `OTXVisualPromptingModelExporter` * Update overlapped region refinement * Update `export_params` * Enable optimize * Add exportable code, but updating `demo.py` is required * Update model_type * Fix integration test
- Loading branch information
Showing
6 changed files
with
967 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.