Skip to content

Commit

Permalink
coreml: handle empty face set error
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 6, 2024
1 parent b36783d commit bd3bc0d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/coreml/src/vision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ async def run_detection_image(

futures.append(asyncio.ensure_future(self.setEmbedding(d, image)))

await asyncio.wait(futures)
if len(futures):
await asyncio.wait(futures)

return ret

0 comments on commit bd3bc0d

Please sign in to comment.