mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-07 09:19:50 +00:00
parent
63b2f95cfa
commit
5f5f9232c1
@ -9,7 +9,6 @@
|
|||||||
import logging
|
import logging
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
from itertools import combinations
|
from itertools import combinations
|
||||||
from time import sleep
|
|
||||||
|
|
||||||
from hscommon.util import extract, iterconsume
|
from hscommon.util import extract, iterconsume
|
||||||
from hscommon.trans import tr
|
from hscommon.trans import tr
|
||||||
@ -255,9 +254,7 @@ def getmatches(pictures, cache_path, threshold, match_scaled=False, j=job.nulljo
|
|||||||
ref.dimensions # pre-read dimensions for display in results
|
ref.dimensions # pre-read dimensions for display in results
|
||||||
other.dimensions
|
other.dimensions
|
||||||
result.append(get_match(ref, other, percentage))
|
result.append(get_match(ref, other, percentage))
|
||||||
# HACK this is a workaround for when the progress bar gets stuck sometimes,
|
pool.join()
|
||||||
# as we enter a deadlock somewhere and the sub-processes become zombies.
|
|
||||||
sleep(1)
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user