PLAN MODE: lets look at a new feature. currently our spectrogam in calls
show-images and classify, work on audio of any sample rate. it would be a
good idea to limit sample rates to 16000Hz. if the sample rate is under
16000Hz we should do nothing, but if the sample rate is over 16000 we should
resample to 16000, or bandpass. lets make auto downsample to 16000Hz the
default.Some of my data is 250000Hz, lets provide an optional --bandpass
filter. the main use case for this would be for ling tail and short tail bats
in nz. Lets do --bandpass [long-tail/short-tail] Here is a pdf from DOC about bats. PLAN MODE
for item in a
try
jsonfile = replace(item, ".csv" => ".json")
run(pipeline(`skraak calls from-preds --csv $item`, jsonfile))
catch e
@error "skraak failed on $item" exception=(e, catch_backtrace())
end
end
model = "/media/david/SSD2/Secondary_Models/DFMN_Inge/model_DFMN1-5_CPU_epoch-9-0.9737-2024-10-25.jld2"
labels = Dict(1 => "Duet", 2 => "Female", 3 => "Male", 4 => "Don't Know")
predict(a, model, labels)
model = "/media/david/SSD2/Secondary_Models/LSK/model_GSK_LSK_DFM_FT_IngeDFMN_1-5_1-0_CPU_epoch-9-0.9745-2025-01-13.jld2"
labels = Dict(1 => "GSK", 2 => "GSK", 3 => "GSK", 4 => "LSK", 5 => "LSK", 6 => "LSK")
## Needed to change the logic
predict(a, model, labels)