Hi,
I'm trying to transition one of my applications from Depthai v2 to Depthai v3. I have a custom trained yolov7 model that I converted to a .blob with tools.luxonis.com . In the application I used the YoloDetectionNetwork
and set the parser config manually from the config json file like below:
with open(config_path) as f:
config = json.load(f)
metadata = config["nn_config"]["NN_specific_metadata"]
classes = metadata["classes"]
coordinates = metadata["coordinates"]
anchors = metadata["anchors"]
anchor_masks = metadata["anchor_masks"]
iou_threshold = metadata["iou_threshold"]
confidence_threshold = metadata["confidence_threshold"]
detection_network = pipeline.create(dai.node.YoloDetectionNetwork)
detection_network.setConfidenceThreshold(confidence_threshold)
detection_network.setNumClasses(classes)
detection_network.setCoordinateSize(coordinates)
detection_network.setAnchors(anchors)
detection_network.setAnchorMasks(anchor_masks)
detection_network.setIouThreshold(iou_threshold)
detection_network.setBlobPath(model_path)
In Depthai v3 YoloDetectionNetwork
is replaced by the DetectionNetwork
node. But DetectionNetwork
doesn't have the parser configuration methods like setNumClasses
, setCoordinateSize
, setAnchors
etc. So now I have no way to configure the parser. Resulting in the parser not recognizing any detections.
Can I create the network and parser seperately to get access to the parser settings perhaps?
I've tried to re-convert my models using the HubAI in to a newer format like nnArchive or .superblob. But honestly, HubAI is horrible for productivity and I don't want to use it. It takes 3 times as many clicks to do what used to be quick in tools.luxonis.com . I need to create an account, create a team, create model, create variant etc etc. I have 5 variants of my model in different resolutions so it's not reasonable to do this every time I update my model. Old tool had the settings persistent between runs so you didn't have to input settings, click ok, input settings, click ok, etc over and over like you do now. Please update the old tool to output new archives. Or make a "HubAI Light".