Skip to content

pth转onnx报错,assert (num_channels % 4 == 0) #8

@wukongxuetang

Description

@wukongxuetang

使用您提供的convert-onnx进行yolo fastest v2内pth转换时,提示以下报错
D:\labelImg\yolofastv2\convert_onnx>python pytorch2onnx.py --data coco.data --weights coco.pth
load param...
D:\labelImg\yolofastv2\convert_onnx\model\backbone\shufflenetv2.py:59: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
assert (num_channels % 4 == 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions