jsbroks / imantics

:camera: Reactive python package for managing, creating and visualizing different deep-learning image annotation formats
https://imantics.rtfd.io
MIT License
364 stars 68 forks source link

Fix annotation addition to image via simple iteration over recursion #36

Closed saurabheights closed 4 years ago

saurabheights commented 4 years ago

This PR fixes #33 .

Note: Mentioning this again to avoid any unintended behavior(however, I dont think any issue will happen). Instead of coverting recursion to simple iteration, I went with setting annotation id to max of annotation ids in image +1. This helped a lot speed up of code, probably due to faster in-built max function implementation.