flamo 0.2.2__py3-none-any.whl → 0.2.4__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
@@ -309,6 +309,7 @@ class LossProfile:
309
309
  audio distances are bad at pitch,” arXiv preprint arXiv:2012.04572, 2020.
310
310
  """
311
311
  steps = self.steps
312
+ steps = steps.cpu().numpy()
312
313
  # find the index in steps of the element closest to the target value
313
314
  target_indx = np.abs(steps - self.param_config.target_value).argmin()
314
315
  accuracy = np.empty(loss.shape)
@@ -635,6 +636,8 @@ class LossSurface(LossProfile):
635
636
  """
636
637
  steps_0 = self.steps_0
637
638
  steps_1 = self.steps_1
639
+ steps_0 = steps_0.cpu().numpy()
640
+ steps_1 = steps_1.cpu().numpy()
638
641
  # find the index in steps of the element closest to the target value
639
642
  target_indx_0 = np.abs(steps_0 - self.param_config[0].target_value).argmin()
640
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.2
3
+ Version: 0.2.4
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=MmEPKKFt2kF5eJmtW841RRLGq1ibjfPs0QxcpjhNZP8,26539
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.2.dist-info/METADATA,sha256=bXd68FFF6GV7vEceP8jLup-LmHju1Qos_TY-0-ulwOc,7825
22
- flamo-0.2.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
- flamo-0.2.2.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
24
- flamo-0.2.2.dist-info/RECORD,,
21
+ flamo-0.2.4.dist-info/METADATA,sha256=oilC5Qm53xWaNF1rKOUnQvZC_fFy0x9L7HBlJsKzNUM,7825
22
+ flamo-0.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
23
+ flamo-0.2.4.dist-info/licenses/LICENSE,sha256=smMocRH7xdPT5RvFNqSLtbSNzohXJM5G_rX1Qaej6vg,1120
24
+ flamo-0.2.4.dist-info/RECORD,,
File without changes