-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
Is there interest in a prediction or preprocessing helper that helps people perform on (batches) of data for (Image-Net) pretrained models?
Thinking something like
function preprocess(img::AbstractArray{U, N}, sz = (224, 224); T = Float32, C = RGB{N0f8} )
item = DataAugmentation.Image{N}(img)
tfm = ToEltype(C) |> CenterResizeCrop(sz) |> ToTensor(T) |> Normalize(IMAGENET_STATS)
return apply(tfm, item) |> itemdata
end
preprocess(imgs::AbstractVector{<:AbstractArray}) = ...
This would require adding a dep to DataAugmentation.jl, though.
adrhill, theabhirath and CarloLucibello
Metadata
Metadata
Assignees
Labels
No labels