flamo 0.2.5__py3-none-any.whl → 0.2.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flamo/auxiliary/reverb.py +2 -1
- flamo/optimize/trainer.py +8 -5
- {flamo-0.2.5.dist-info → flamo-0.2.7.dist-info}/METADATA +1 -1
- {flamo-0.2.5.dist-info → flamo-0.2.7.dist-info}/RECORD +6 -6
- {flamo-0.2.5.dist-info → flamo-0.2.7.dist-info}/WHEEL +0 -0
- {flamo-0.2.5.dist-info → flamo-0.2.7.dist-info}/licenses/LICENSE +0 -0
flamo/auxiliary/reverb.py
CHANGED
|
@@ -416,7 +416,8 @@ class parallelGFDNAccurateGEQ(parallelFDNAccurateGEQ):
|
|
|
416
416
|
alias_decay_db=alias_decay_db,
|
|
417
417
|
start_freq=start_freq,
|
|
418
418
|
end_freq=end_freq,
|
|
419
|
-
device=device
|
|
419
|
+
device=device,
|
|
420
|
+
dtype=dtype
|
|
420
421
|
)
|
|
421
422
|
self.n_gains = self.size[0]
|
|
422
423
|
self.size = (self.n_groups * self.size[0],)
|
flamo/optimize/trainer.py
CHANGED
|
@@ -54,11 +54,13 @@ class Trainer:
|
|
|
54
54
|
patience_delta: float = 0.01,
|
|
55
55
|
step_size: int = 50,
|
|
56
56
|
step_factor: float = 0.1,
|
|
57
|
+
log: bool = True,
|
|
57
58
|
train_dir: str = None,
|
|
58
59
|
device: str = "cpu",
|
|
59
60
|
):
|
|
60
61
|
|
|
61
62
|
self.device = device
|
|
63
|
+
self.log = log
|
|
62
64
|
self.net = net.to(device)
|
|
63
65
|
self.max_epochs = max_epochs
|
|
64
66
|
self.lr = lr
|
|
@@ -67,10 +69,10 @@ class Trainer:
|
|
|
67
69
|
self.min_val_loss = float("inf")
|
|
68
70
|
self.optimizer = torch.optim.Adam(self.net.parameters(), lr=self.lr)
|
|
69
71
|
self.n_loss = 0
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
if self.log:
|
|
73
|
+
assert os.path.isdir(
|
|
74
|
+
train_dir
|
|
75
|
+
), "The directory specified in train_dir does not exist."
|
|
74
76
|
self.train_dir = train_dir
|
|
75
77
|
|
|
76
78
|
self.criterion, self.alpha, self.requires_model = (
|
|
@@ -141,7 +143,8 @@ class Trainer:
|
|
|
141
143
|
self.print_results(epoch, et_epoch - st_epoch)
|
|
142
144
|
|
|
143
145
|
# save checkpoints
|
|
144
|
-
self.
|
|
146
|
+
if self.log:
|
|
147
|
+
self.save_model(epoch)
|
|
145
148
|
if self.early_stop():
|
|
146
149
|
print("Early stopping at epoch: {}".format(epoch))
|
|
147
150
|
break
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flamo
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: An Open-Source Library for Frequency-Domain Differentiable Audio Processing
|
|
5
5
|
Project-URL: Homepage, https://github.com/gdalsanto/flamo
|
|
6
6
|
Project-URL: Issues, https://github.com/gdalsanto/flamo/issues
|
|
@@ -5,7 +5,7 @@ flamo/auxiliary/__init__.py,sha256=7lVNh8OxHloZ4KPmp-iTUJnUbi8XbuRzGaQ3Z-NKXio,4
|
|
|
5
5
|
flamo/auxiliary/eq.py,sha256=aI0og6x82r_o3Q7xGu36scdf51e2ARhYmFyJqnEIzQc,7364
|
|
6
6
|
flamo/auxiliary/filterbank.py,sha256=02w8dI8HoNDtKpdVhSJkIkd-h-KNXvZtivf3l4_ozzU,9866
|
|
7
7
|
flamo/auxiliary/minimize.py,sha256=fMTAAAk9yD7Y4luKS4XA1-HTq44xo2opq_dRPRrhlIY,2474
|
|
8
|
-
flamo/auxiliary/reverb.py,sha256=
|
|
8
|
+
flamo/auxiliary/reverb.py,sha256=4D4minxSW88Vu_xxAYxaU8Z98ag1F4jHfIft4nef0Bg,34940
|
|
9
9
|
flamo/auxiliary/scattering.py,sha256=IV9ZgkMfgEWtQo3IeLJviAXAdjrYI_Tob-H_8Zv8oBA,9729
|
|
10
10
|
flamo/auxiliary/velvet.py,sha256=B4pYEnhaQPkh02pxqiGdAhLRX2g-eWtHezphi0_h4Qs,4201
|
|
11
11
|
flamo/auxiliary/config/config.py,sha256=sZ3XvqwV6KiIc2n8HRtg7YJE3zhc7Vqblbqs-Z0bsKg,2978
|
|
@@ -13,12 +13,12 @@ flamo/optimize/__init__.py,sha256=grgxLmQ7m-c9MvRdIejmEAaaajfBwgeaZAv2qjHIvPw,65
|
|
|
13
13
|
flamo/optimize/dataset.py,sha256=WPvWDhT-U-gFkPaP1UzvFfB2bxlxdDDQ64zQ2-OcbYY,6789
|
|
14
14
|
flamo/optimize/loss.py,sha256=h6EeqjdX5P1SqDBKBavSxV25VBgnYK8tuX91wk6lw_g,33466
|
|
15
15
|
flamo/optimize/surface.py,sha256=sWy1ImwxUh_QLoY6S68LXBa82_HdWJGplFg2ObtpNGc,26655
|
|
16
|
-
flamo/optimize/trainer.py,sha256=
|
|
16
|
+
flamo/optimize/trainer.py,sha256=LITPVS87mI6bnq4J6GIXqGb4wW7TKWVXeCu4UQ-csxM,12155
|
|
17
17
|
flamo/optimize/utils.py,sha256=R5-KoZagRho3eykY88pC3UB2mc5SsE4Yv9X-ogskXdA,1610
|
|
18
18
|
flamo/processor/__init__.py,sha256=paGdxGVZgA2VAs0tBwRd0bobzGxeyK79DS7ZGO8drkI,41
|
|
19
19
|
flamo/processor/dsp.py,sha256=Znp_9qjHRb7V0DBaqPWxa9oOlU84CVTjy6h3DcAh-TU,144811
|
|
20
20
|
flamo/processor/system.py,sha256=Hct-o6IgF5NQ2xYbX-1j3st94hMoM8dOgAzle2gjDqU,43145
|
|
21
|
-
flamo-0.2.
|
|
22
|
-
flamo-0.2.
|
|
23
|
-
flamo-0.2.
|
|
24
|
-
flamo-0.2.
|
|
21
|
+
flamo-0.2.7.dist-info/METADATA,sha256=WR7SkIg6PT-N6T30zURuCnRt9Lcodgk6RcxG5dghM68,7825
|
|
22
|
+
flamo-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
23
|
+
flamo-0.2.7.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
|
|
24
|
+
flamo-0.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|