flamo 0.2.1__py3-none-any.whl → 0.2.3__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/optimize/surface.py CHANGED
@@ -142,6 +142,7 @@ class LossProfile:
142
142
  figsize=((len(self.criteria) + 2) // 3 * 5, 15),
143
143
  )
144
144
  steps = self.steps
145
+ steps = steps.cpu().numpy()
145
146
  for i_crit in range(len(self.criteria)):
146
147
  mean_loss = loss[:, :, i_crit].mean(0)
147
148
  std_loss = loss[:, :, i_crit].std(0)
@@ -308,6 +309,7 @@ class LossProfile:
308
309
  audio distances are bad at pitch,” arXiv preprint arXiv:2012.04572, 2020.
309
310
  """
310
311
  steps = self.steps
312
+ steps = steps.cpu().numpy()
311
313
  # find the index in steps of the element closest to the target value
312
314
  target_indx = np.abs(steps - self.param_config.target_value).argmin()
313
315
  accuracy = np.empty(loss.shape)
@@ -470,7 +472,7 @@ class LossSurface(LossProfile):
470
472
  steps_0 = self.steps_0
471
473
  steps_1 = self.steps_1
472
474
  # create a meshgrid
473
- steps_0, steps_1 = np.meshgrid(steps_0, steps_1)
475
+ steps_0, steps_1 = np.meshgrid(steps_0.cpu().numpy(), steps_1.cpu().numpy())
474
476
  title = ["mean", "std"]
475
477
  for i_plot in range(2):
476
478
  if len(self.criteria) == 1:
@@ -634,6 +636,8 @@ class LossSurface(LossProfile):
634
636
  """
635
637
  steps_0 = self.steps_0
636
638
  steps_1 = self.steps_1
639
+ steps_0 = steps_0.cpu().numpy()
640
+ steps_1 = steps_1.cpu().numpy()
637
641
  # find the index in steps of the element closest to the target value
638
642
  target_indx_0 = np.abs(steps_0 - self.param_config[0].target_value).argmin()
639
643
  target_indx_1 = np.abs(steps_1 - self.param_config[1].target_value).argmin()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flamo
3
- Version: 0.2.1
3
+ Version: 0.2.3
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
@@ -12,13 +12,13 @@ flamo/auxiliary/config/config.py,sha256=sZ3XvqwV6KiIc2n8HRtg7YJE3zhc7Vqblbqs-Z0b
12
12
  flamo/optimize/__init__.py,sha256=grgxLmQ7m-c9MvRdIejmEAaaajfBwgeaZAv2qjHIvPw,65
13
13
  flamo/optimize/dataset.py,sha256=6DviKGBuT8HZp6dm4ipOpd8XZeycIl1ci4QChx2iL0M,6556
14
14
  flamo/optimize/loss.py,sha256=h6EeqjdX5P1SqDBKBavSxV25VBgnYK8tuX91wk6lw_g,33466
15
- flamo/optimize/surface.py,sha256=aYWXg2ZNJzFjHRILcgrTfNkQ2VSoaMfMSnu9IPM8O-8,26475
15
+ flamo/optimize/surface.py,sha256=sWy1ImwxUh_QLoY6S68LXBa82_HdWJGplFg2ObtpNGc,26655
16
16
  flamo/optimize/trainer.py,sha256=he4nUjLC-3RTlxxBIw33r5k8mQfgAGvN1wpPBAWCjVo,12045
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=a5etio4qfJWwAsHpAk3CXDgEd3LMet-r_956216SO6M,128874
20
20
  flamo/processor/system.py,sha256=Hct-o6IgF5NQ2xYbX-1j3st94hMoM8dOgAzle2gjDqU,43145
21
- flamo-0.2.1.dist-info/METADATA,sha256=sOS3bLK0Cf-EaySS5RxXTtXUilTJ4iHkAbEmnB_VL0w,7825
22
- flamo-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- flamo-0.2.1.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
24
- flamo-0.2.1.dist-info/RECORD,,
21
+ flamo-0.2.3.dist-info/METADATA,sha256=er-bkIQNPfkYkufZc7bK_pUZR2oFDCAamPzLvL9ED9g,7825
22
+ flamo-0.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ flamo-0.2.3.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
24
+ flamo-0.2.3.dist-info/RECORD,,
File without changes