sparkfish / augraphy

Augmentation pipeline for rendering synthetic paper printing, faxing, scanning and copy machine processes
https://github.com/sparkfish/augraphy
MIT License
357 stars 46 forks source link

Fix UnboundLocalError in Geometric #441

Closed MarieRoald closed 2 months ago

MarieRoald commented 2 months ago

When I tried to use the Geometric augmentation with bounding boxes but without key-points, I got an UnboundLocalError due to the remove_indices-list not existing at line 212. This PR should hopefully fix that.

kwcckw commented 2 months ago

Thanks!