diff --git a/codebook/create_codebook.py b/codebook/create_codebook.py index d2026b5..6148cb6 100755 --- a/codebook/create_codebook.py +++ b/codebook/create_codebook.py @@ -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) diff --git a/launch/landmark_update.launch b/launch/landmark_update.launch index 3a12720..8021b37 100755 --- a/launch/landmark_update.launch +++ b/launch/landmark_update.launch @@ -14,7 +14,7 @@ - + @@ -29,7 +29,7 @@ - + cone: 0.12 fire_extinguisher: 0.12 diff --git a/src/landmark_update.py b/src/landmark_update.py index c6db57a..7aaf065 100755 --- a/src/landmark_update.py +++ b/src/landmark_update.py @@ -114,7 +114,7 @@ class Memory: self.vecs = {} # id -> deque of vectors (if USE_PROTOTYPE) or single vec self.proto = {} # id -> current prototype (np.array) self.meta = {} # id -> dict(last_xyz, last_seen, last_box) - self.maxlen = maxlen + self.maxlen = maxlen self.sim_base = sim_thresh_base def _th_for_class(self, cls_name:str)->float: