Skip to content

Commit

Permalink
Use test data for benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilliami committed Nov 5, 2024
1 parent 890f29f commit 0ce0891
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
11 changes: 1 addition & 10 deletions benchmark/basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ using BenchmarkTools: @btime

Logging.disable_logging(Logging.Info)

include(joinpath(dirname(@__DIR__), "examples", "constants.jl"))
include(joinpath(dirname(@__DIR__), "examples", "main_data.jl"))

min_size_img = (19, 19)
scale, scale_to = false, (200, 200)

min_feature_height = 8
max_feature_height = 10
min_feature_width = 8
max_feature_width = 10
include("constants.jl")

learn(
pos_training_path,
Expand Down
16 changes: 16 additions & 0 deletions benchmark/constants.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use same data as tests, for simplicity
main_data_path = joinpath(dirname(@__DIR__), "test", "images")

pos_training_path = joinpath(main_data_path, "pos")
neg_training_path = joinpath(main_data_path, "neg")
pos_testing_path = joinpath(main_data_path, "pos_testing")
neg_testing_path = joinpath(main_data_path, "neg_testing")

num_classifiers = 10
min_size_img = (19, 19)
scale, scale_to = false, (200, 200)

min_feature_height = 8
max_feature_height = 10
min_feature_width = 8
max_feature_width = 10

0 comments on commit 0ce0891

Please sign in to comment.