update
This commit is contained in:
@@ -39,7 +39,7 @@ def estimate_idf(paths, kmeans):
|
|||||||
det = create_detector()
|
det = create_detector()
|
||||||
K = kmeans.n_clusters
|
K = kmeans.n_clusters
|
||||||
df = np.zeros(K, dtype=np.float32)
|
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)
|
img = cv2.imread(p, cv2.IMREAD_GRAYSCALE)
|
||||||
if img is None: continue
|
if img is None: continue
|
||||||
kps, d = det.detectAndCompute(img, None)
|
kps, d = det.detectAndCompute(img, None)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<param name="idf" value="$(env HOME)/codebook/idf.npy"/>
|
<param name="idf" value="$(env HOME)/codebook/idf.npy"/>
|
||||||
|
|
||||||
<!-- Detection -->
|
<!-- Detection -->
|
||||||
<param name="conf_thres" value="0.25"/>
|
<param name="conf_thres" value="0.5"/>
|
||||||
|
|
||||||
<!-- Ngưỡng base cho re-ID (dùng nếu lớp không có ngưỡng riêng) -->
|
<!-- Ngưỡng base cho re-ID (dùng nếu lớp không có ngưỡng riêng) -->
|
||||||
<param name="sim_thresh" value="0.12"/>
|
<param name="sim_thresh" value="0.12"/>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<param name="prototype_maxlen" value="7"/>
|
<param name="prototype_maxlen" value="7"/>
|
||||||
|
|
||||||
<!-- (3) Ngưỡng theo lớp -->
|
<!-- (3) Ngưỡng theo lớp -->
|
||||||
<param name="use_per_class_th" value="true"/>
|
<param name="use_per_class_th" value="false"/>
|
||||||
<rosparam param="class_thresholds">
|
<rosparam param="class_thresholds">
|
||||||
cone: 0.12
|
cone: 0.12
|
||||||
fire_extinguisher: 0.12
|
fire_extinguisher: 0.12
|
||||||
|
|||||||
Reference in New Issue
Block a user