Skip to content

Commit

Permalink
Fix Checking similar detections percent
Browse files Browse the repository at this point in the history
  • Loading branch information
PandapowrTR authored May 7, 2024
1 parent e9077fc commit 06a0a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/Dominate/DominateLabeledImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ def processFile(args):
futures.append(future)

concurrent.futures.wait(futures)
nonlocal c
c += 1

def processLabel(l, img, args):
(
Expand Down Expand Up @@ -304,8 +306,6 @@ def processCheckLabel(cl, checkFile, cutDetection, args):
checkCutDetection = np.array(Image.fromarray(checkCutDetection).resize((100, 100)))
if imgAreSimilar(cutDetection, checkCutDetection, maxSimilarity):
deletedFiles.add(checkFile)
nonlocal c
c += 1

sizes = {}
for root, _, files in os.walk(dataPath):
Expand Down

0 comments on commit 06a0a6f

Please sign in to comment.