Open sepehr3pehr opened 5 years ago
I get the following error when running demos_train_query_base.jl
Training an optimized product quantizer 0 3.384649e+04... ERROR: LoadError: MethodError: no method matching update_centers!(::Array{Float32,2}, ::Nothing, ::Array{Int64,1}, ::Array{Bool,1}, ::Array{Float32,2}, ::Array{Float64,1}) Closest candidates are: update_centers!(::AbstractArray{#s110,2} where #s110<:Real, ::Nothing, ::Array{Int64,1}, ::Array{Bool,1}, ::AbstractArray{#s109,2} where #s109<:AbstractFloat, ::Array{Int64,1}) at /home/s2eghbal/.julia/packages/Clustering/YmmQw/src/kmeans.jl:269 update_centers!(::AbstractArray{#s110,2} where #s110<:Real, ::Array{W<:Real,1}, ::Array{Int64,1}, ::Array{Bool,1}, ::AbstractArray{#s109,2} where #s109<:Real, ::Array{W<:Real,1}) where W<:Real at /home/s2eghbal/.julia/packages/Clustering/YmmQw/src/kmeans.jl:316 update_centers!(::Any, ::Any, ::Any, ::Any) at /home/s2eghbal/.julia/packages/Clustering/YmmQw/src/fuzzycmeans.jl:42 Stacktrace: [1] train_opq(::Array{Float32,2}, ::Int64, ::Int64, ::Int64, ::String, ::Bool) at /home/s2eghbal/.julia/dev/Rayuela/src/OPQ.jl:121 [2] experiment_opq(::Array{Float32,2}, ::Array{Float32,2}, ::Array{Float32,2}, ::Array{UInt32,1}, ::Int64, ::Int64, ::String, ::Int64, ::Int64, ::Bool) at /home/s2eghbal/.julia/dev/Rayuela/src/OPQ.jl:155 [3] run_demos(::String, ::Int64, ::Int64, ::Int64, ::Int64) at /home/s2eghbal/.julia/dev/Rayuela/demos/demos_train_query_base.jl:35 [4] top-level scope at /home/s2eghbal/.julia/dev/Rayuela/demos/demos_train_query_base.jl:171 [inlined] [5] top-level scope at ./none:0 [6] include at ./boot.jl:326 [inlined] [7] include_relative(::Module, ::String) at ./loading.jl:1038 [8] include(::Module, ::String) at ./sysimg.jl:29 [9] include(::String) at ./client.jl:403 [10] top-level scope at none:0 in expression starting at /home/s2eghbal/.julia/dev/Rayuela/demos/demos_train_query_base.jl:170
I changed the type of cweights to Int64 and it solved the issue.
I get the following error when running demos_train_query_base.jl