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

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

Closed
dilerbatu opened this issue Feb 15, 2024 · 1 comment
Closed

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

dilerbatu opened this issue Feb 15, 2024 · 1 comment

Comments

@dilerbatu
Copy link

dilerbatu commented Feb 15, 2024

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
Copy link
Author

I solved the issue with this classes = self._recog_service.get_subjects().list()

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