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

DimensionMismatch("new array has 225 color channels, must have 3") #1

Open
lagefreitas opened this issue Oct 13, 2018 · 0 comments
Open

Comments

@lagefreitas
Copy link

hello,

I tried to run the notebook in Julia 0.6.3 in OSX and I get the following error at the last cell (#Demo: Style transfer. [...]):

INFO: Recompiling stale cache file /Users/alage/.julia/lib/v0.6/QuartzImageIO.ji for module QuartzImageIO.
DimensionMismatch("new array has 225 color channels, must have 3")

Stacktrace:
 [1] check_ncolorchan(::Array{ColorTypes.RGB4{FixedPointNumbers.Normed{UInt8,8}},2}, ::Tuple{Int64,Int64,Int64}) at /Users/alage/.julia/v0.6/ImageCore/src/colorchannels.jl:360
 [2] similar(::ImageCore.ChannelView{FixedPointNumbers.Normed{UInt8,8},3,Array{ColorTypes.RGB4{FixedPointNumbers.Normed{UInt8,8}},2}}, ::Type{FixedPointNumbers.Normed{UInt8,8}}, ::Tuple{Int64,Int64,Int64}) at /Users/alage/.julia/v0.6/ImageCore/src/colorchannels.jl:117
 [3] permutedims(::ImageCore.ChannelView{FixedPointNumbers.Normed{UInt8,8},3,Array{ColorTypes.RGB4{FixedPointNumbers.Normed{UInt8,8}},2}}, ::Array{Int64,1}) at ./permuteddimsarray.jl:116
 [4] #preprocess#10(::Int64, ::Function, ::Array{ColorTypes.RGB4{FixedPointNumbers.Normed{UInt8,8}},2}) at ./In[3]:22
 [5] (::#kw##preprocess)(::Array{Any,1}, ::#preprocess, ::Array{ColorTypes.RGB4{FixedPointNumbers.Normed{UInt8,8}},2}) at ./<missing>:0
 [6] style_transfer(::String, ::String, ::Int64, ::Int64, ::Int64, ::Float64, ::NTuple{5,Int64}, ::Array{Float64,1}, ::Float64, ::Bool) at ./In[18]:25 (repeats 2 times)
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

1 participant