Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/mfa_extraction/fix_mismatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def fix(base_path: str, dur_path: str, trimmed_dur_path: str, use_norm: str):
dur = np.load(
os.path.join(trimmed_dur_path, f"{i.split('-')[0]}-durations.npy")
)
except:
except Exception:
dur = np.load(
os.path.join(dur_path, f"{i.split('-')[0]}-durations.npy")
)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_tts/inference/auto_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def from_pretrained(cls, pretrained_path=None, config=None, **kwargs):
if pretrained_path is not None and ".h5" in pretrained_path:
try:
model.load_weights(pretrained_path)
except:
except Exception:
model.load_weights(
pretrained_path, by_name=True, skip_mismatch=True
)
Comment on lines 105 to 111
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_tts/utils/cleaners.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

try:
from german_transliterate.core import GermanTransliterate
except:
except Exception:
pass
Comment on lines +30 to 31

# Regular expression matching whitespace:
Expand Down
Loading