changet train api to take a list of images instead of glob pattern
Dependencies
- [2]
RQ56K2G4minor work on train and predict - [3]
ZGLDIQ4Grolled back reduced and bifurcated training set used to test models before going away - [4]
3FAESP6Ncatch up with changes, mainly construct primary dataset - [5]
RBXUHIO2made somn small changes and reverted them mostly - [6]
ETOIK7VErecording changes, but this does not work anymore - [7]
E3Y55MPRadded perceptual colour maps and changed get_image_from_sample - [8]
QPBH7QWCadded MLBaste for confusion matrix, f1, roc, must still remove freq tables - [9]
FY7CEMM2mac work on train.jl - [10]
PQ6OQCBQwork on construct primary dataset - [11]
NV7FXZ5Qfirst commit - [12]
NMQCXLNGcatch up commit, about to do some work on prediction loop - [13]
4BTZNCRMcatch up commit before starting work
Change contents
- replacement in src/Train.jl at line 15
glob_pattern::String="*/*.png",images::Vector{String}, - replacement in src/Train.jl at line 27
using Skraakglob_pattern = "kiwi_set*/*/[N,K]/*.png" #11699814-element Vector{String}using Skraak, Globimages = glob("kiwi_set*/*/[N,K]/*.png") #11699814-element Vector{String} - replacement in src/Train.jl at line 30
train("K1-10_total_set_no_augumentation", 2, glob_pattern, model, 0.97, 64)train("K1-10_total_set_no_augumentation", 2, images, model, 0.97, 64) - replacement in src/Train.jl at line 32[2.260]→[3.6:188](∅→∅),[3.336198]→[3.6:188](∅→∅),[3.61]→[3.0:1](∅→∅),[3.81]→[3.0:1](∅→∅),[3.174]→[3.0:1](∅→∅),[3.187]→[3.0:1](∅→∅),[3.188]→[3.0:1](∅→∅),[3.336312]→[3.0:1](∅→∅),[3.1]→[3.175:427](∅→∅),[3.427]→[3.225:278](∅→∅),[3.225]→[3.225:278](∅→∅)
glob_pattern = "original_set*/*/[N,K]/*.png" #from SSD2/PrimaryDataset 7758648 hard coded a random selection of not, 1:1train("K1-9_original_set", 20, glob_pattern, true, 0.90, 64)glob_pattern = "kiwi_set_2023-11-13/*/[N,K]/*.png" #from SSD2/PrimaryDatasetmodel = "/media/david/SSD2/PrimaryDataset/media/david/SSD2/PrimaryDataset/model_K1-6_CPU_epoch-3-0.9798-2024-02-01.jld2"train("K1-6_ft1", 10, glob_pattern, model, 0.95, 64)glob_pattern = "*/[D,F,M,N]/*.png" #from SSD2/Clipsimages = glob("*/[D,F,M,N]/*.png") #from SSD2/Clips - replacement in src/Train.jl at line 34
train("DFMN1-5", 20, glob_pattern, model)train("DFMN1-5", 20, images, model) - replacement in src/Train.jl at line 43
glob_pattern::String = "*/*.png", #images::Vector{String}images::Vector{String} #glob_pattern::String = "*/*.png" - replacement in src/Train.jl at line 49
images = glob(glob_pattern) #|> shuffle! |> x -> x[1:640]#images = glob(glob_pattern) #|> shuffle! |> x -> x[1:640] - replacement in src/Train.jl at line 163
#x -> Noise.add_gauss(x, (rand() * 0.2)) |>#x -> apply_mask!(x, 3, 3, 12) |>x -> Noise.add_gauss(x, (rand() * 0.2)) |>x -> apply_mask!(x, 3, 3, 12) |> - replacement in src/Train.jl at line 323
test_confusion_matrix[1,1] > a && begina = test_confusion_matrix[1,1]#test_confusion_matrix[1,1] > a && begin#a = test_confusion_matrix[1,1] - replacement in src/Train.jl at line 332
end#end