Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify CLI #38

Open
hbredin opened this issue Jan 24, 2022 · 1 comment
Open

Simplify CLI #38

hbredin opened this issue Jan 24, 2022 · 1 comment

Comments

@hbredin
Copy link
Member

hbredin commented Jan 24, 2022

The whole {root_dir}/train/{protocol}.{subset}/apply/{date}/{protocol}.{subset}.rttm directory scheme is (a bit) cumbersome.

Would be nice to simplify the whole thing:

Training

pyannote-pipeline train {/path/to/config.yml} {protocol}

would creates two files in the same directory as config.yml:

  • /path/to/{protocol}.{subset}.yml that contains everything needed to load the trained pipeline

    from pyannote.audio import Pipeline
    pipeline = Pipeline.from_pretrained("/path/to/{protocol}.{subset}.yml")
  • /path/to/{protocol}.{subset}.db that contains optuna experiments

    optuna-dashboard sqlite:////path/to{protocol}.{subset}.db

Inference

pyannote-pipeline apply /path/to/{protocol}.{subset}.yml {protocol} 
pyannote-pipeline apply /path/to/{protocol}.{subset}.yml /path/to/audio.wav 
@hbredin
Copy link
Member Author

hbredin commented Jun 9, 2022

Also, for {protocol} inference, it would be nice to have some way of keeping track of the hyper-parameter used directly in the resulting RTTM file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant