diff --git a/Data/Dominate/DominateLabeledImage.py b/Data/Dominate/DominateLabeledImage.py index 7a591d4..2343f7e 100644 --- a/Data/Dominate/DominateLabeledImage.py +++ b/Data/Dominate/DominateLabeledImage.py @@ -239,6 +239,8 @@ def processFile(args): futures.append(future) concurrent.futures.wait(futures) + nonlocal c + c += 1 def processLabel(l, img, args): ( @@ -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):