Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbmrz committed Nov 9, 2024
1 parent 7b999ac commit 1ed14ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions depthai_nodes/ml/parsers/yunet.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,12 @@ def build(
"""

super().build(head_config)
output_layers = head_config.get("outputs", [])
if len(inputs_size) != 1:
raise ValueError(
f"Only one input supported for YuNetParser, got {len(inputs_size)} inputs."
)
self.input_size = inputs_size[0]
print(self.input_size)
output_layers = head_config.get("outputs", [])
for output_layer in output_layers:
if "loc" in output_layer:
self.loc_output_layer_name = output_layer
Expand Down
1 change: 0 additions & 1 deletion depthai_nodes/parser_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def build(self, nn_archive: dai.NNArchive, head_index: int = None) -> Dict:
if "inputs_size" in sig.parameters:
inputs_size = []
for input in nn_archive.getConfig().model.inputs:
breakpoint()
if input.layout == "NHWC":
_, height, width, _ = input.shape
elif input.layout == "NCHW":
Expand Down

0 comments on commit 1ed14ba

Please sign in to comment.