Skip to content

Commit

Permalink
deleteSimilarDetections method is interrupted error fix
Browse files Browse the repository at this point in the history
- Now, if the deleteSimilarDetections method is interrupted, it should delete the alone datas.
  • Loading branch information
PandapowrTR authored May 7, 2024
1 parent 475611e commit fa91e5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Data/Dominate/DominateLabeledImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,11 @@ def augData(
deleteSimilarDetections(
imgSavePath, labelSavePath, labelSaveFormat, maxSimilarity
)
except KeyboardInterrupt:
print("🔄 Deleting alone data 🥺💔")
time.sleep(1)
deleteAloneData(imgSavePath, labelSavePath)
BurobotOutput.clearAndMemoryTo()
except:
pass

Expand Down

0 comments on commit fa91e5f

Please sign in to comment.