diart icon indicating copy to clipboard operation
diart copied to clipboard

Simplify installation

Open juanmc2005 opened this issue 3 years ago • 2 comments

Problem

Installation requires multiple steps, which were necessary when pyannote.audio 2.0 hadn't been released. Now that this isn't needed anymore, it would be better to simplify the steps for a default installation including pyannote.audio even though it's optional.

Ideally this should be a single step: pip install diart

juanmc2005 avatar Sep 13 '22 09:09 juanmc2005

Or

pip install diart             # does not install pyannote
pip install diart[pretrained] # installs pyannote

hbredin avatar Sep 13 '22 09:09 hbredin

In case you are wondering how this is done (I am sure you know already :))...

The following setup.py section will allow pip install pyannote.core[notebook] for instance...

https://github.com/pyannote/pyannote-core/blob/5399294a65e6ad81ae4da5a906d84d515b832822/setup.py#L67-L78

hbredin avatar Sep 13 '22 09:09 hbredin

Update: pyannote.audio and pytorch installations already automated in v0.6

I prefer to leave a pyannote installation by default, advanced users that want to free space may do so by uninstalling it. It hasn't proven to be a required scenario for now.

The next step would be to automate portaudio and pysoundfile with pip if possible.

juanmc2005 avatar Oct 31 '22 11:10 juanmc2005

Implemented in #130

juanmc2005 avatar Mar 27 '23 16:03 juanmc2005