Skip to content

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

Description

@lagefreitas

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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