Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load YOLOv3 and Faster RCNN model #31

Open
zhangpiu opened this issue Nov 13, 2019 · 1 comment
Open

Failed to load YOLOv3 and Faster RCNN model #31

zhangpiu opened this issue Nov 13, 2019 · 1 comment

Comments

@zhangpiu
Copy link

I'm trying to load YOLOv3 and Faster RCNN model, but hit errors.

julia> using Flux, ONNX

julia> ONNX.load_model("yolov3.onnx")
ERROR: KeyError: key :Squeeze not found
Stacktrace:
 [1] getindex(::Dict{Symbol,Any}, ::Symbol) at ./dict.jl:478
 [2] _graph(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:0
 [3] graph(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:92
 [4] code(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:100
 [5] write_julia_file(::String) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/convert.jl:235
 [6] load_model(::String) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/convert.jl:250
 [7] top-level scope at none:0
julia> using Flux, ONNX

julia> ONNX.load_model("faster_rcnn_R_50_FPN_1x.onnx")
ERROR: KeyError: key :Gather not found
Stacktrace:
 [1] getindex(::Dict{Symbol,Any}, ::Symbol) at ./dict.jl:478
 [2] _graph(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:0
 [3] graph(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:92
 [4] code(::ONNX.Types.Graph) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/graph/graph.jl:100
 [5] write_julia_file(::String) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/convert.jl:235
 [6] load_model(::String) at /Users/yuanye/.julia/packages/ONNX/iz0dL/src/convert.jl:250
 [7] top-level scope at none:0
@gabrielpreviato
Copy link

I'm having the same issue with Julia v1.5.2 and ONNX.jl v0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants