mods to clips to truncate freq to max 16000

quietlight
Mar 9, 2024, 3:14 AM
SMODB47PJBBRRAXJNDWX4LTSNUW3BUILYGSQQ2ZKLYGT6OLO722AC

Dependencies

  • [2] 27HKDBYT changet train api to take a list of images instead of glob pattern
  • [3] RQ56K2G4 minor work on train and predict
  • [4] E3Y55MPR added perceptual colour maps and changed get_image_from_sample
  • [5] NMQCXLNG catch up commit, about to do some work on prediction loop
  • [6] NV7FXZ5Q first commit
  • [7] 3FAESP6N catch up with changes, mainly construct primary dataset
  • [8] 2UBDFCJH new files tracked

Change contents

  • replacement in src/Train.jl at line 43
    [3.336787][2.290:351]()
    images::Vector{String} #glob_pattern::String = "*/*.png"
    [3.336787]
    [3.336825]
    images::Vector{String}, #glob_pattern::String = "*/*.png"
  • replacement in src/Clips.jl at line 66
    [3.14746][3.14746:14797]()
    file_name = path_to_file_string(v.file[1])
    [3.14746]
    [3.14797]
    file_name, extension = path_to_file_string(v.file[1])
  • replacement in src/Clips.jl at line 72
    [3.14940][3.14940:15010]()
    signal, freq = wavread("$location/$trip_date/$file_name.WAV")
    [3.14940]
    [3.15010]
    signal, freq = wavread("$location/$trip_date/$(file_name).$(extension)")
    if freq > 16000
    signal, freq = Skraak.resample_to_16000hz(signal, freq)
    end
    freq = freq |> Float32
  • edit in src/Clips.jl at line 93
    [3.15659]
    [3.15659]
    PNGFiles.save("/media/david/SSD1/$outfile.png", image)
  • replacement in src/Clips.jl at line 132
    [3.16847][3.16847:16908]()
    f = split(path, "/")[end] |> x -> split(x, ".") |> first
    [3.16847]
    [3.16908]
    f = split(path, "/")[end] |> x -> split(x, ".")
  • replacement in src/Clips.jl at line 134
    [3.16948][3.16948:16961]()
    return f
    [3.16948]
    [3.16961]
    return first(f), last(f)
  • replacement in src/Clips.jl at line 139
    [3.17063][3.17063:17107]()
    file_string = path_to_file_string(file)
    [3.17063]
    [3.17107]
    file_string = path_to_file_string(file) |> first