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

Fails when clustering #37

Open
sergey-kalita opened this issue Nov 20, 2018 · 2 comments
Open

Fails when clustering #37

sergey-kalita opened this issue Nov 20, 2018 · 2 comments

Comments

@sergey-kalita
Copy link

Could you please point where this has to be fixed and what does it mean?

Running next code for clustering purpose on the 8 minutes video turned into failure. And the same error occurs on all 5-10 minutes videos with near 40-100 face tracks

clustering = FaceClustering(threshold=0.6)
face_tracks, embeddings = clustering.model.preprocess('../../pyannote-data/Video2.embedding.txt')
result = clustering(face_tracks, features=embeddings)

Error stack
File "C:/Users/sergii.kalyta/.spyder-py3/Face clustering.py", line 283, in
result = clustering(face_tracks, features=embeddings)

File "D:\Projects\Install\sergii.kalyta\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\pyannote\algorithms\clustering\hac\hac.py", line 204, in call
for i, current_state in enumerate(self._iterate()):

File "D:\Projects\Install\sergii.kalyta\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\pyannote\algorithms\clustering\hac\hac.py", line 172, in _iterate
self.model.update(clusters, into, parent=self)

File "D:\Projects\Install\sergii.kalyta\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\pyannote\algorithms\clustering\hac\model.py", line 164, in update
self._similarity.pop((i, j), default=None)

File "D:\Projects\Install\sergii.kalyta\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\sortedcontainers\sorteddict.py", line 427, in pop
self._list_remove(key)

File "D:\Projects\Install\sergii.kalyta\AppData\Local\Continuum\anaconda3\envs\tensorflow\lib\site-packages\sortedcontainers\sortedlist.py", line 2025, in remove
raise ValueError('{0!r} not in list'.format(value))

ValueError: (40, 2) not in list

@hbredin
Copy link
Member

hbredin commented Nov 21, 2018

Looks like this is a duplicate of #34.
Can you try the solution discussed there?

@QaisAlkhateeb
Copy link

QaisAlkhateeb commented Nov 28, 2018

I have the same issue, I follow the tutorial on the following link:
http://nbviewer.jupyter.org/github/pyannote/pyannote-video/blob/master/doc/getting_started.ipynb
my lib versions is :
sortedcollections==1.0.1
sortedcontainers ==2.0.5
I also tried on sortedcontainers==2.0.4 and the same error raised

Note: The error raised when I use test video other than the video used on the tutorial

After Changing the video format from mp4 to mkv the problem solved

PaulLerner pushed a commit to PaulLerner/pyannote-video that referenced this issue Nov 22, 2019
 imageio.plugins.ffmpeg.download() is now deprecated.
 See also issue pyannote#37
PaulLerner pushed a commit to PaulLerner/pyannote-video that referenced this issue Nov 22, 2019
imageio.plugins.ffmpeg.download() is now deprecated.
 See also issue pyannote#37
PaulLerner pushed a commit to PaulLerner/pyannote-video that referenced this issue Nov 22, 2019
imageio.plugins.ffmpeg.download() is now deprecated.
 See also issue pyannote#37
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

3 participants