Skip to content

Commit

Permalink
update the arg classes in prediction#
Browse files Browse the repository at this point in the history
  • Loading branch information
falibabaei committed Jul 19, 2024
1 parent d6c611b commit 05bc7b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def main():
args = cmd_parser.parse_args()

main()


"""
python3 api/__init__.py train --model yolov8n.yaml\
Expand Down
7 changes: 5 additions & 2 deletions api/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ class Meta:
},
load_default=False,
)
classes = fields.Field(
classes = fields.List(
fields.Int(),
metadata={
"description": "Filter results by class, i.e. class=0, "
"or class=[0,2,3]"
"or class=[0,2,3]. Only detections belonging to the "
"specified classes will be returned. Useful for focusing"
" on relevant objects in multi-class detection tasks."
},
load_default=None,
)
Expand Down

0 comments on commit 05bc7b4

Please sign in to comment.