Skip to content

UndefVarError: stride=(2, 2) not defined when loading ResNet #42

Open
@natema

Description

@natema

I downloaded resnet18 from here, and run, in the onnx file's folder

ONNX.load_model("resnet18-v1-7.onnx")
weights = ONNX.load_weights("weights.bson") ;
model = include("model.jl")

which results in

julia> model = include("model.jl")
ERROR: LoadError: UndefVarError: stride=(2, 2) not defined
Stacktrace:
 [1] top-level scope at /mypath🙂/models/model.jl:6
 [2] include(::String) at ./client.jl:439
 [3] top-level scope at REPL[44]:1
in expression starting at /mypath🙂/models/model.jl:4

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions