Skip to content

Commit c683c70

Browse files
nummpy 2.0 deprecation np.Inf fix (#7)
* nummpy 2.0 deprecation np.Inf fix
1 parent 129d8c8 commit c683c70

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

paule/paule.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,10 @@ def criterion(pred_semvec, target_semvec, cps):
878878
initial_pred_semvec = initial_pred_semvec[-1, :].detach().cpu().numpy().copy()
879879

880880

881-
self.best_synthesis_acoustic = BestSynthesisAcoustic(np.Inf, initial_cp, initial_sig, initial_prod_mel, initial_pred_mel)
882-
self.best_synthesis_semantic = BestSynthesisSemantic(np.Inf, initial_cp, initial_sig, initial_prod_semvec, initial_pred_semvec)
881+
self.best_synthesis_acoustic = BestSynthesisAcoustic(np.inf, initial_cp, initial_sig, initial_prod_mel, initial_pred_mel)
882+
self.best_synthesis_semantic = BestSynthesisSemantic(np.inf, initial_cp, initial_sig, initial_prod_semvec, initial_pred_semvec)
883883
if self.use_somatosensory_feedback:
884-
self.best_synthesis_somatosensory = BestSynthesisSomatosensory(np.Inf, np.Inf, np.Inf, initial_cp, initial_sig,
884+
self.best_synthesis_somatosensory = BestSynthesisSomatosensory(np.inf, np.inf, np.inf, initial_cp, initial_sig,
885885
initial_prod_tube,
886886
initial_pred_tube,
887887
initial_prod_tube_mel,
@@ -1182,7 +1182,7 @@ def criterion(pred_semvec, target_semvec, cps):
11821182
self.best_synthesis_acoustic = new_synthesis_acoustic
11831183

11841184
if self.use_somatosensory_feedback:
1185-
new_synthesis_somatosensory = BestSynthesisSomatosensory(float(prod_tube_loss.item()), float(prod_tube_mel_loss.item()), np.Inf,
1185+
new_synthesis_somatosensory = BestSynthesisSomatosensory(float(prod_tube_loss.item()), float(prod_tube_mel_loss.item()), np.inf,
11861186
xx_new_numpy, sig,
11871187
prod_tube,
11881188
pred_tube[-1, :].detach().cpu().numpy().copy(),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "paule"
3-
version = "0.4.7"
3+
version = "0.4.8"
44
description = "paule implements the Predictive Articulatory speech synthesis model Utilizing Lexical Embeddings (PAULE), which is a control model for the articulatory speech synthesizer VocalTractLab (VTL)."
55

66
license = "GPLv3+"

0 commit comments

Comments
 (0)