Hi @user1066,
The IndexError in _handle_spatial_flatten_before_dynamic_weights_layer seems to be a known category of parsing issues in DFC 3.33.1 where the ONNX translator encounters Conv nodes whose weights are provided via Constant nodes rather than standard graph initializers - Please see Dataflow compiler (3.28.0) fails to parse fine-tuned yolov10n ONNX model and Parsing custom ONNX - YoloV7 for related cases.
Since the error persists even with very early --end-node-names, the issue likely comes from your backbone layers. You might try re-exporting from PyTorch with do_constant_folding=True to fold Constant nodes into proper initializers, and possibly use a lower opset (13 or 15 have worked better for some users). Your custom attention/unfold modules in /model.17/ and /model.21/ with dynamic shape ops (Shape, Gather, Range) are generally not supported by the Hailo parser - you might need to restructure them to use static shapes, or exclude them via --end-node-names and handle them on the host CPU instead.
Thanks,
Michael