Skip to content

Commit

Permalink
Merge pull request #1 from eurecom-asp/dev
Browse files Browse the repository at this point in the history
Checkpoint inference and numpy versioning in setup tools
  • Loading branch information
m-pana authored Mar 14, 2024
2 parents c0702fb + ffd59c7 commit 4800d9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions anonymizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
class Anonymizer(torch.nn.Module):
def __init__(self, checkpoint_dir: str, voice_dirs: Union[list[str], None] = None):
super().__init__()

if not os.path.exists(checkpoint_dir):
print(f"Checkpoint directory {checkpoint_dir} not found, creating it")
os.makedirs(checkpoint_dir)

# 1. initialize Bark
config = BarkConfig() # don't change the custom config for the love of god
Expand Down
3 changes: 2 additions & 1 deletion coqui_tts/TTS/tts/configs/bark_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class BarkConfig(BaseTTSConfig):
COARSE_SEMANTIC_PAD_TOKEN: int = 12_048
COARSE_INFER_TOKEN: int = 12_050

REMOTE_BASE_URL = "https://huggingface.co/erogol/bark/tree/main/"
# REMOTE_BASE_URL = "https://huggingface.co/erogol/bark/tree/main/" # this used to return the actual model, now returns an HTML page lol
REMOTE_BASE_URL = "https://huggingface.co/erogol/bark/resolve/main/"
REMOTE_MODEL_PATHS: Dict = None
LOCAL_MODEL_PATHS: Dict = None
SMALL_REMOTE_MODEL_PATHS: Dict = None
Expand Down
2 changes: 1 addition & 1 deletion coqui_tts/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel", "cython==0.29.30", "numpy==1.22.0", "packaging"]
requires = ["setuptools", "wheel", "cython==0.29.30", "numpy>=1.22.0", "packaging"]

[flake8]
max-line-length=120
Expand Down

0 comments on commit 4800d9a

Please sign in to comment.