mirror of
https://github.com/JosephKJ/OWOD.git
synced 2025-06-03 14:50:40 +08:00
Updates
This commit is contained in:
parent
87fd0069e2
commit
39944f9da5
@ -90,13 +90,11 @@ def load_voc_coco_instances(dirname: str, split: str, class_names: Union[List[st
|
||||
if cls_name not in known_class_list:
|
||||
continue
|
||||
|
||||
if len(fileid) >= 10:
|
||||
if 'unk' in split:
|
||||
cls = "unknown"
|
||||
else:
|
||||
cls = cls_name
|
||||
else:
|
||||
cls = cls_name
|
||||
# if 'unk' in split:
|
||||
# cls = "unknown"
|
||||
# else:
|
||||
# cls = cls_name
|
||||
cls = cls_name
|
||||
# We include "difficult" samples in training.
|
||||
# Based on limited experiments, they don't hurt accuracy.
|
||||
# difficult = int(obj.find("difficult").text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user