video-copy-detection
copied
Use bool to replace np.bool.
Signed-off-by: wxywb <xy.wang@zilliz.com>
@ -110,7 +110,7 @@ def tn(sims: np.ndarray,
# Constraints C3
if len(intermediate_rs) == 0:
C3 = np.ones(C2.shape, dtype=np.bool)
C3 = np.ones(C2.shape, dtype=bool)
else:
# "the equal sign" in C3 in paper is wrong because it's contradictory to C2
cond1 = intermediate_rs[None, :] > r_i[:, None]