-
-
Couldn't load subscription status.
- Fork 67
Closed
Description
julia> using Metalhead
julia> VGG19()
ERROR: MethodError: no method matching Flux.Conv2D(::Array{Float32,4}, ::Array{Float32,1}, ::NNlib.#relu; pad=1, stride=1)
Closest candidates are:
Flux.Conv2D(::F, ::A, ::Int64, ::Int64) where {F, A} at /home/ranjanan/.julia/v0.6/Flux/src/layers/conv.jl:14 got unsupported keyword arguments "pad", "stride"
Flux.Conv2D(::Tuple{Integer,Integer}, ::Pair{#s51,#s50} where #s50<:Integer where #s51<:Integer, ::Any; init, stride, pad) at /home/ranjanan/.julia/v0.6/Flux/src/layers/conv.jl:21
Stacktrace:
[1] vgg19_layers() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:3
[2] Metalhead.VGG19() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:40This is on Flux 0.4.1 and Metalhead 0.1.0. Checking out Metalhead doesn't help. Checking out Flux master gives me this error:
julia> VGG19()
WARNING: Conv2D(args...; kw...) is deprecated, use Conv(args...; kw...) instead.
Stacktrace:
[1] depwarn(::String, ::Symbol) at ./deprecated.jl:70
[2] #Conv2D#107(::Array{Any,1}, ::Function, ::Array{Float32,4}, ::Vararg{Any,N} where N) at ./deprecated.jl:57
[3] (::Flux.#kw##Conv2D)(::Array{Any,1}, ::Flux.#Conv2D, ::Array{Float32,4}, ::Vararg{Any,N} where N) at ./<missing>:0
[4] vgg19_layers() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:3
[5] Metalhead.VGG19() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:40
[6] eval(::Module, ::Any) at ./boot.jl:235
[7] eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:66
[8] macro expansion at ./REPL.jl:97 [inlined]
[9] (::Base.REPL.##1#2{Base.REPL.REPLBackend})() at ./event.jl:73
while loading no file, in expression starting on line 0
ERROR: MethodError: no method matching Flux.Conv(::NNlib.#relu, ::Array{Float32,4}, ::Array{Float32,1}, ::Int64, ::Int64)
Closest candidates are:
Flux.Conv(::F, ::A, ::V, ::Tuple{Vararg{Int64,N}}, ::Tuple{Vararg{Int64,N}}) where {N, F, A, V} at /home/ranjanan/.julia/v0.6/Flux/src/layers/conv.jl:16
Flux.Conv(::AbstractArray{T,N} where N, ::AbstractArray{T,1}, ::Any; stride, pad) where T at /home/ranjanan/.julia/v0.6/Flux/src/layers/conv.jl:24
Flux.Conv(::Tuple{Vararg{Integer,N}}, ::Pair{#s94,#s93} where #s93<:Integer where #s94<:Integer, ::Any; init, stride, pad) where N at /home/ranjanan/.julia/v0.6/Flux/src/layers/conv.jl:29
Stacktrace:
[1] (::Core.#kw#Type)(::Array{Any,1}, ::Type{Flux.Conv}, ::Array{Float32,4}, ::Array{Float32,1}, ::Function) at ./<missing>:0
[2] #Conv2D#107(::Array{Any,1}, ::Function, ::Array{Float32,4}, ::Vararg{Any,N} where N) at ./deprecated.jl:59
[3] (::Flux.#kw##Conv2D)(::Array{Any,1}, ::Flux.#Conv2D, ::Array{Float32,4}, ::Vararg{Any,N} where N) at ./<missing>:0
[4] vgg19_layers() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:3
[5] Metalhead.VGG19() at /home/ranjanan/.julia/v0.6/Metalhead/src/vgg19.jl:40Metadata
Metadata
Assignees
Labels
No labels