This commit is contained in:
MZ YANG
2026-01-24 00:13:25 +08:00
parent e0949da18d
commit d953af9f2c
4 changed files with 1491 additions and 1468 deletions

View File

@@ -6,12 +6,12 @@
"vocab_path": "F:\\Development\\modbus_diffusion\\mask-ddpm\\mask-ddpm\\example\\results\\disc_vocab.json", "vocab_path": "F:\\Development\\modbus_diffusion\\mask-ddpm\\mask-ddpm\\example\\results\\disc_vocab.json",
"out_dir": "F:\\Development\\modbus_diffusion\\mask-ddpm\\mask-ddpm\\example\\results", "out_dir": "F:\\Development\\modbus_diffusion\\mask-ddpm\\mask-ddpm\\example\\results",
"device": "cuda", "device": "cuda",
"timesteps": 400, "timesteps": 600,
"batch_size": 128, "batch_size": 128,
"seq_len": 128, "seq_len": 128,
"epochs": 8, "epochs": 10,
"max_batches": 3000, "max_batches": 4000,
"lambda": 0.5, "lambda": 0.7,
"lr": 0.0005, "lr": 0.0005,
"seed": 1337, "seed": 1337,
"log_every": 10, "log_every": 10,
@@ -23,8 +23,19 @@
"use_condition": true, "use_condition": true,
"condition_type": "file_id", "condition_type": "file_id",
"cond_dim": 32, "cond_dim": 32,
"use_tanh_eps": true, "use_tanh_eps": false,
"eps_scale": 1.0, "eps_scale": 1.0,
"model_time_dim": 128,
"model_hidden_dim": 512,
"model_num_layers": 2,
"model_dropout": 0.1,
"model_ff_mult": 2,
"model_pos_dim": 64,
"model_use_pos_embed": true,
"disc_mask_scale": 0.9,
"shuffle_buffer": 256,
"cont_loss_weighting": "inv_std",
"cont_loss_eps": 1e-06,
"sample_batch_size": 8, "sample_batch_size": 8,
"sample_seq_len": 128 "sample_seq_len": 128
} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,49 +1,61 @@
epoch,step,loss,loss_cont,loss_disc epoch,step,loss,loss_cont,loss_disc
0,0,1.337395,1.021482,1.653308 0,0,11167.695312,15953.111328,1.724242
0,10,1.038067,1.000154,1.075980 0,10,9087.185547,12981.238281,1.064673
0,20,0.826958,1.003188,0.650727 0,20,8013.873047,11448.066406,0.754843
0,30,0.716293,1.000017,0.432568 0,30,7750.469238,11071.843750,0.595490
0,40,0.642435,0.996074,0.288796 0,40,7318.491699,10454.799805,0.439722
0,50,0.645388,0.996218,0.294559 0,50,6203.619629,8862.157227,0.365653
1,0,0.637520,0.993191,0.281849 1,0,6193.139160,8847.107422,0.546190
1,10,0.713771,0.991469,0.436074 1,10,5310.143066,7585.783203,0.315335
1,20,0.650629,0.992278,0.308979 1,20,4997.141602,7138.669434,0.244063
1,30,0.629345,0.985191,0.273500 1,30,5102.173828,7288.673340,0.341697
1,40,0.609776,0.981005,0.238547 1,40,4889.704590,6985.163574,0.301696
1,50,0.617772,0.969507,0.266037 1,50,4464.582031,6377.856445,0.275643
2,0,0.585185,0.967395,0.202975 2,0,4263.960938,6091.127441,0.572437
2,10,0.680145,0.959188,0.401103 2,10,4512.501953,6446.293945,0.321264
2,20,0.642215,0.958451,0.325979 2,20,3771.830566,5388.239258,0.210747
2,30,0.608462,0.944497,0.272428 2,30,4168.801758,5955.297852,0.310156
2,40,0.591900,0.935138,0.248661 2,40,3893.949707,5562.653809,0.307125
2,50,0.595101,0.924723,0.265478 2,50,3592.934082,5132.634277,0.299983
3,0,0.558750,0.922984,0.194516 3,0,3630.500732,5186.204590,0.524986
3,10,0.660143,0.914986,0.405301 3,10,4294.888672,6135.428223,0.295987
3,20,0.627620,0.921503,0.333737 3,20,4014.402344,5734.780273,0.187329
3,30,0.588966,0.904150,0.273781 3,30,3350.504395,4786.301758,0.310899
3,40,0.564722,0.894733,0.234712 3,40,3594.643799,5135.087891,0.274148
3,50,0.570761,0.885211,0.256310 3,50,3021.600830,4316.448730,0.288729
4,0,0.540599,0.890481,0.190716 4,0,3652.151123,5217.125488,0.544297
4,10,0.641783,0.867125,0.416441 4,10,3424.859375,4892.513672,0.332935
4,20,0.602556,0.877150,0.327963 4,20,3616.758301,5166.715820,0.191626
4,30,0.565765,0.864500,0.267031 4,30,3917.766602,5596.676758,0.310133
4,40,0.549726,0.865462,0.233990 4,40,3198.908691,4569.743652,0.293973
4,50,0.557315,0.841800,0.272829 4,50,3620.363525,5171.822754,0.292025
5,0,0.519324,0.852145,0.186504 5,0,3905.391113,5578.920898,0.488646
5,10,0.620299,0.834153,0.406445 5,10,3736.691650,5338.013184,0.275286
5,20,0.575242,0.824914,0.325570 5,20,3246.106445,4637.198730,0.224402
5,30,0.552362,0.823336,0.281388 5,30,3043.803467,4348.147949,0.333001
5,40,0.522278,0.819058,0.225498 5,40,3140.492920,4486.295898,0.286265
5,50,0.532715,0.803952,0.261479 5,50,3297.937744,4711.217285,0.285744
6,0,0.497478,0.812609,0.182347 6,0,3736.930664,5338.267090,0.479558
6,10,0.604873,0.796479,0.413267 6,10,3255.724609,4650.906250,0.300728
6,20,0.561931,0.810630,0.313232 6,20,3049.013916,4355.632324,0.237928
6,30,0.529465,0.781080,0.277850 6,30,3393.649902,4847.937988,0.310594
6,40,0.497049,0.760593,0.233505 6,40,3115.019531,4449.909180,0.277703
6,50,0.508375,0.755011,0.261740 6,50,3112.252197,4445.961914,0.262911
7,0,0.468464,0.767502,0.169426 7,0,3641.770020,5202.332520,0.457427
7,10,0.581364,0.750101,0.412627 7,10,3153.711182,4505.169434,0.308097
7,20,0.527510,0.744724,0.310295 7,20,3340.833008,4772.514160,0.244215
7,30,0.502973,0.751034,0.254912 7,30,3104.038330,4434.214355,0.294671
7,40,0.488204,0.747923,0.228486 7,40,2953.430176,4219.063965,0.284970
7,50,0.490762,0.720018,0.261506 7,50,2742.062988,3917.124512,0.252722
8,0,3295.310303,4707.383789,0.471809
8,10,3437.480713,4910.552246,0.314371
8,20,2814.868652,4021.159180,0.191010
8,30,3298.100830,4711.456543,0.271321
8,40,3101.292236,4430.304199,0.264610
8,50,3019.903809,4314.035645,0.263237
9,0,3331.924805,4759.682617,0.489816
9,10,3607.728760,5153.762695,0.316371
9,20,3083.686768,4405.178711,0.206150
9,30,2969.860840,4242.547852,0.257607
9,40,3160.122314,4514.349609,0.258729
9,50,3079.660156,4399.401367,0.264233
1 epoch step loss loss_cont loss_disc
2 0 0 1.337395 11167.695312 1.021482 15953.111328 1.653308 1.724242
3 0 10 1.038067 9087.185547 1.000154 12981.238281 1.075980 1.064673
4 0 20 0.826958 8013.873047 1.003188 11448.066406 0.650727 0.754843
5 0 30 0.716293 7750.469238 1.000017 11071.843750 0.432568 0.595490
6 0 40 0.642435 7318.491699 0.996074 10454.799805 0.288796 0.439722
7 0 50 0.645388 6203.619629 0.996218 8862.157227 0.294559 0.365653
8 1 0 0.637520 6193.139160 0.993191 8847.107422 0.281849 0.546190
9 1 10 0.713771 5310.143066 0.991469 7585.783203 0.436074 0.315335
10 1 20 0.650629 4997.141602 0.992278 7138.669434 0.308979 0.244063
11 1 30 0.629345 5102.173828 0.985191 7288.673340 0.273500 0.341697
12 1 40 0.609776 4889.704590 0.981005 6985.163574 0.238547 0.301696
13 1 50 0.617772 4464.582031 0.969507 6377.856445 0.266037 0.275643
14 2 0 0.585185 4263.960938 0.967395 6091.127441 0.202975 0.572437
15 2 10 0.680145 4512.501953 0.959188 6446.293945 0.401103 0.321264
16 2 20 0.642215 3771.830566 0.958451 5388.239258 0.325979 0.210747
17 2 30 0.608462 4168.801758 0.944497 5955.297852 0.272428 0.310156
18 2 40 0.591900 3893.949707 0.935138 5562.653809 0.248661 0.307125
19 2 50 0.595101 3592.934082 0.924723 5132.634277 0.265478 0.299983
20 3 0 0.558750 3630.500732 0.922984 5186.204590 0.194516 0.524986
21 3 10 0.660143 4294.888672 0.914986 6135.428223 0.405301 0.295987
22 3 20 0.627620 4014.402344 0.921503 5734.780273 0.333737 0.187329
23 3 30 0.588966 3350.504395 0.904150 4786.301758 0.273781 0.310899
24 3 40 0.564722 3594.643799 0.894733 5135.087891 0.234712 0.274148
25 3 50 0.570761 3021.600830 0.885211 4316.448730 0.256310 0.288729
26 4 0 0.540599 3652.151123 0.890481 5217.125488 0.190716 0.544297
27 4 10 0.641783 3424.859375 0.867125 4892.513672 0.416441 0.332935
28 4 20 0.602556 3616.758301 0.877150 5166.715820 0.327963 0.191626
29 4 30 0.565765 3917.766602 0.864500 5596.676758 0.267031 0.310133
30 4 40 0.549726 3198.908691 0.865462 4569.743652 0.233990 0.293973
31 4 50 0.557315 3620.363525 0.841800 5171.822754 0.272829 0.292025
32 5 0 0.519324 3905.391113 0.852145 5578.920898 0.186504 0.488646
33 5 10 0.620299 3736.691650 0.834153 5338.013184 0.406445 0.275286
34 5 20 0.575242 3246.106445 0.824914 4637.198730 0.325570 0.224402
35 5 30 0.552362 3043.803467 0.823336 4348.147949 0.281388 0.333001
36 5 40 0.522278 3140.492920 0.819058 4486.295898 0.225498 0.286265
37 5 50 0.532715 3297.937744 0.803952 4711.217285 0.261479 0.285744
38 6 0 0.497478 3736.930664 0.812609 5338.267090 0.182347 0.479558
39 6 10 0.604873 3255.724609 0.796479 4650.906250 0.413267 0.300728
40 6 20 0.561931 3049.013916 0.810630 4355.632324 0.313232 0.237928
41 6 30 0.529465 3393.649902 0.781080 4847.937988 0.277850 0.310594
42 6 40 0.497049 3115.019531 0.760593 4449.909180 0.233505 0.277703
43 6 50 0.508375 3112.252197 0.755011 4445.961914 0.261740 0.262911
44 7 0 0.468464 3641.770020 0.767502 5202.332520 0.169426 0.457427
45 7 10 0.581364 3153.711182 0.750101 4505.169434 0.412627 0.308097
46 7 20 0.527510 3340.833008 0.744724 4772.514160 0.310295 0.244215
47 7 30 0.502973 3104.038330 0.751034 4434.214355 0.254912 0.294671
48 7 40 0.488204 2953.430176 0.747923 4219.063965 0.228486 0.284970
49 7 50 0.490762 2742.062988 0.720018 3917.124512 0.261506 0.252722
50 8 0 3295.310303 4707.383789 0.471809
51 8 10 3437.480713 4910.552246 0.314371
52 8 20 2814.868652 4021.159180 0.191010
53 8 30 3298.100830 4711.456543 0.271321
54 8 40 3101.292236 4430.304199 0.264610
55 8 50 3019.903809 4314.035645 0.263237
56 9 0 3331.924805 4759.682617 0.489816
57 9 10 3607.728760 5153.762695 0.316371
58 9 20 3083.686768 4405.178711 0.206150
59 9 30 2969.860840 4242.547852 0.257607
60 9 40 3160.122314 4514.349609 0.258729
61 9 50 3079.660156 4399.401367 0.264233