This commit is contained in:
trung09122002
2025-10-20 10:30:17 +07:00
parent e3775d0a41
commit bb8dd669df
3 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ def estimate_idf(paths, kmeans):
det = create_detector()
K = kmeans.n_clusters
df = np.zeros(K, dtype=np.float32)
for p in tqdm(paths, desc="Estimating DF/IDF"):
for p in tqdm(paths, desc="Estimating TF/IDF"):
img = cv2.imread(p, cv2.IMREAD_GRAYSCALE)
if img is None: continue
kps, d = det.detectAndCompute(img, None)