Skip to content

Commit

Permalink
conversion function for Makie
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 19, 2019
1 parent 7791c9c commit 4798772
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/makierendering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ function renderResult(img::Array{Float32}, predictions::Vector{YOLO.PredictLabel
save_file != "" && Makie.save(save_file, scene)
return scene
end

renderResult(img::KnetArray{Float32}, predictions::Vector{YOLO.PredictLabel}, settings::YOLO.Settings; save_file::String = "") =
renderResult(Array{Float32}(img), predictions = predictions, settings = settings, save_file = save_file)

0 comments on commit 4798772

Please sign in to comment.