Skip to content

Commit 4129bc4

Browse files
committed
fix type for weight_file
1 parent 4f55cae commit 4129bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external/mmdetection/detection_tasks/apis/detection/openvino_task.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def __init__(
135135
hparams: OTEDetectionConfig,
136136
label_schema: LabelSchemaEntity,
137137
model_file: Union[str, bytes],
138-
weight_file: Optional[str, bytes] = None,
138+
weight_file: Union[str, bytes, None] = None,
139139
device: str = "CPU",
140140
num_requests: int = 1,
141141
):

0 commit comments

Comments
 (0)