Skip to content

Commit e431315

Browse files
update weight
1 parent a23a66a commit e431315

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

model/model-0.91502.jld2

-21.8 KB
Binary file not shown.

model/model-0.92091.jld2

28.3 KB
Binary file not shown.

src/data_processing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Predict left hand or right hand by output.
9898
predict_y(y) = y > 0.5f0 ? 1 : 0
9999

100100
function generate_midi(input_file::String; output_file::String="",
101-
weight_file=pkgdir(PianoHands,"model","model-0.91502.jld2"),HIDDEN_SIZE=14)
101+
weight_file=pkgdir(PianoHands,"model","model-0.92091.jld2"),HIDDEN_SIZE=14)
102102

103103
midi_file = load(input_file)
104104
hand_classify = inferance_midi(midi_file,weight_file,HIDDEN_SIZE)

src/training.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ end
88
function train_piano(DATASET_PATH,
99
TESTSET_PATH;
1010
BATCH_SIZE = 12,
11-
SEQ_LENGTH = 75,
11+
SEQ_LENGTH = 65,
1212
HIDDEN_SIZE = 14,
1313
LEARNING_RATE = 0.0005f0,
1414
MAX_EPOCH = 200,

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ using Test,PianoHands,MIDI,Lux,Random,Printf,LuxCUDA,Optimisers,Zygote,JLD2
33
@testset "pig to feature" begin
44
# train_piano("../PianoFingeringDataset/dataset/",
55
# "../PianoFingeringDataset/testset/";
6-
# SEQ_LENGTH=75,
6+
# SEQ_LENGTH=65,
77
# BATCH_SIZE=12,
88
# LEARNING_RATE = 0.0005f0,
99
# HIDDEN_SIZE = 14,
1010
# EVALUATE_PER_N_TRAIN = 50
1111
# )
1212

13-
generate_midi("./ymsn_full.mid";weight_file="../model/model-0.91502.jld2")
13+
generate_midi("./ymsn_full.mid";weight_file="../model/model-0.92091.jld2")
1414
end

0 commit comments

Comments
 (0)