Skip to content

ImageToTensor doesn't support RGBA #83

@oluwandabira

Description

@oluwandabira

Minimal example:

using DataAugmentation, Images

image = Image(rand(RGBA, 50, 50))
tfm = ImageToTensor()
apply(tfm, image)

which results in

ERROR: LoadError: MethodError: no method matching imagetotensor(::Matrix{RGBA{Float64}}, ::Type{Float32})

Closest candidates are:
  imagetotensor(::AbstractArray{C, N}, ::Any) where {C<:Color, N}

Pkg.status():

[88a5189c] DataAugmentation v0.2.11
[916415d5] Images v0.26.0

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