yolov3_to_onnx.py Sample Not Working with Custom Path

Hey, I’ve been trying to use yolov3_to_onnx.py for my local path to custom yolov3.cfg (sturucture of the model is not changed just the layers are adjusted for detection of custom objects) however I end up with

Traceback (most recent call last):
  File "deneme_yolov3_to_onnx.py", line 805, in <module>
    main()
  File "deneme_yolov3_to_onnx.py", line 770, in main
    layer_configs = parser.parse_cfg_file(cfg_file_path)
  File "deneme_yolov3_to_onnx.py", line 92, in parse_cfg_file
    layer_dict, layer_name, remainder = self._next_layer(remainder)
  File "deneme_yolov3_to_onnx.py", line 133, in _next_layer
    layer_param_block, remainder = remainder.split('\n\n', 1)
ValueError: need more than 1 value to unpack

I set cfg_file_path as

cfg_file_path = ('/home/orcun/yolov3/cfg/yolov3_snow.cfg')
# These are the only layers DarkNetParser will extract parameters from. The three layers of
# type 'yolo' are not parsed in detail because they are included in the post-processing later:
supported_layers = ['net', 'convolutional', 'shortcut',
                    'route', 'upsample']

# Create a DarkNetParser object, and the use it to generate an OrderedDict with all
# layer's configs from the cfg file:
parser = DarkNetParser(supported_layers)
layer_configs = parser.parse_cfg_file(cfg_file_path)

Hi orcdnz,

Can you share your custom config file?

Thanks,
NVIDIA Enterprise Support