mirror of
https://github.com/mii443/usls.git
synced 2025-08-22 15:45:41 +00:00
Add support for restricting detection classes (#45)
* Add support for restricting detection classes in `Options`
This commit is contained in:
@ -160,6 +160,8 @@ fn main() -> Result<()> {
|
||||
// .with_names(&COCO_CLASS_NAMES_80)
|
||||
// .with_names2(&COCO_KEYPOINTS_17)
|
||||
.with_find_contours(!args.no_contours) // find contours or not
|
||||
.exclude_classes(&[0])
|
||||
// .retain_classes(&[0, 5])
|
||||
.with_profile(args.profile);
|
||||
|
||||
// build model
|
||||
|
Reference in New Issue
Block a user