-
Notifications
You must be signed in to change notification settings - Fork 10
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
Demo run gives an error " Something went wrong when applying the model Aborting". #21
Comments
I'm also facing this issue! |
I can confirm that I also now get this error when applying ALICE, and I'm looking into this. ./run_ALICE.sh demo/ROS_5271_20_01_03600_snippet_mono.wav Edit: this seems to relate to voice-type-classifier, as direct call of apply.sh also fails cd voice-type-classifier |
Arg, so annoying !!! Unfortunately, I'm not able to reproduce this error :/ So it might be a MAC-specific problem...
Also attaching mine : |
Here's my list. The problem appeared after my MacOS (11.16) was re-installed from scratch, and as a part of that, I installed newest anaconda as well. Package Version absl-py 0.8.1 |
Ok, we have the exact same dependencies then. When I'm running ALICE on a very long audio file (+10 hours) on CPU, it takes forever, but it doesn't throw any error. So the problem doesn't seem to come from the quantity of memory the program is using. The Segmentation Fault seems to indicate that the program is trying to access a memory location it is not allowed to access. What seems very strange, is that the demo used to work in the past, right Okko ? It would be very useful to know which line from pyannote throws this segmentation fault ... I'm just trying to think, but to be honest, I'm a little lost on that one ... Here are some ideas we may investigate :
Trying to think of more ideas ... (need a coffee refill :)) |
My two cents: recent Python on recent macOS broke a few things. Can you try updating pyannote.metrics to the latest version? |
The master comes to the rescue *_* |
I ran |
After the pyannote metrics 3.1 install, I now get this: Creating config for pyannote. |
This has for side effect to :
I'm not 100% sure we want to go down that road ... @hbredin could you let me know your thoughts please ? Maybe another workaround would consist in deactivating pyannote-metrics ? Not 100% ideal neither but the code is just supposed to generate the prediction of the pretrained model. |
As said, pyannote.metrics==3.1 does not fix the problem, but changes the error a bit. I noticed that ALICE.yml has this as the last entry (for pip installs): i.e., it doesn't have any version specification. I wonder if that can cause some problem here? |
If you do not use pyannote.metrics at all in ALICE, the safest and most perennial way is indeed to not import it :-) |
What @MarvinLvn meant is that updating pyannote.metrics to 3.1 leads to a cascade of other updates. So +1 for not importing pyannote.metrics at all @MarvinLvn |
Thanks a lot for your help @hbredin ! |
Right, is there a way to not to install pyannote.metrics when creating the conda env from .yml? I tried to remove pyannote.metrics from the .yml completely, but it apparently gets installed as a dependency for some other package of pyannote automatically. I then also removed the whole pyannote from the .yml and tried to install just pyannote.audio==1.1 with pip. But as a result, I still get this: pyannote-audio --version and pip list says that pyannote.metrics is also 3.1. |
The pyannote-audio library is installed from source (you have access to the code locally in
You have Anyway, I checked and the code doesn't call any metrics, so I don't think the problem comes from pyannote.metrics Okko, line 120 of
From a fresh install (the kind of install that returns you the segmentation fault :)), could you please try to directly modify |
It does not call any metric but just importing it raises the error in recent macOS |
Oh, alright. Thanks for the info. How strange! |
Not that strange if you look at pyannote/metrics/init.py |
This issue is now resolved by adding separate conda envs for macOS and Linux. Please re-install ALICE with the new environment. Let me know if there are still issues. Tested for macOS 10.13.6 (High Sierra) and 11.6 (Big Sur). |
I tried the tutorial given on GitHub. I am not able to run the demo without error. Running the command ./run_ALICE.sh demo/ROS_5271_20_01_03600_snippet_mono.wav gives the error
"Test set: 0it [00:00, ?it/s]/Users/karthyedath.1/ALICE/voice-type-classifier/apply.sh: line 145: 80104 Segmentation fault: 11 pyannote-audio mlt apply --$DEVICE --batch=$BATCH --subset=test --parallel=8 $VAL_DIR $bn.SpeakerDiarization.All
Something went wrong when applying the model
Aborting".
I am using MacOS
Attaching the error. Could anyone please help me to resolve this issue?
The text was updated successfully, but these errors were encountered: