You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In running the command line "python -m onnx_tool -i 'resnet50-v1-12.onnx' -o 'resnet50_shapes.onnx'", the info promoted there was something unexpected, listed as follows.
PS H:\AIModels> python -m onnx_tool -i 'resnet50-v1-12.onnx' -o 'resnet50_shapes.onnx'
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool_main.py", line 93, in
onnx_tool.model_profile(args.in, dynamic, save_profile=args.file, save_model=args.out)
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool_init_.py", line 84, in model_profile
g.shape_infer(dynamic_shapes)
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool\graph.py", line 974, in shape_infer
raise ValueError(
ValueError: The input tensor data's shape [N,3,224,224] is not valid, Please set it to a valid shape.
Any suggestions for solving the above issue?
The text was updated successfully, but these errors were encountered:
Describe the bug
In running the command line "python -m onnx_tool -i 'resnet50-v1-12.onnx' -o 'resnet50_shapes.onnx'", the info promoted there was something unexpected, listed as follows.
PS H:\AIModels> python -m onnx_tool -i 'resnet50-v1-12.onnx' -o 'resnet50_shapes.onnx'
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool_main.py", line 93, in
onnx_tool.model_profile(args.in, dynamic, save_profile=args.file, save_model=args.out)
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool_init_.py", line 84, in model_profile
g.shape_infer(dynamic_shapes)
File "G:\onnx-tool\sd_env\Lib\site-packages\onnx_tool\graph.py", line 974, in shape_infer
raise ValueError(
ValueError: The input tensor data's shape [N,3,224,224] is not valid, Please set it to a valid shape.
Any suggestions for solving the above issue?
The text was updated successfully, but these errors were encountered: