exadel-inc / compreface-python-sdk

Python SDK for CompreFace - free and open-source face recognition system from Exadel
https://exadel.com/solutions/compreface/
Apache License 2.0
111 stars 39 forks source link

Compreface API shows only 1 subject instead of 10 subjects #22

Closed dilerbatu closed 5 months ago

dilerbatu commented 5 months ago

Describe the bug As I stated in the title, I have 10 subjects to detect it but when I try to list to subjects it only shows one. After some time or reseting the docker it works again but I dont want to restart it at all.

To Reproduce self._recog_service.get_face_collection().list() names = set([item['subject'] for item in classes['faces']]) names

{'XXX': 0}

Expected behavior

Normally It should be like that

{'XXX': 0, 'YYY': 0, 'ZZZ': 0,....}

Logs curl -X GET "http://localhost:8000/api/v1/recognition/faces?page=0&size=2" -H "x-api-key:" I have tried this command but still shows only one subject.

dilerbatu commented 5 months ago

I solved the issue using -> examples/get_list_of_all_subjects.py