Skip to content

Commit c2039b6

Browse files
authored
Fixed index version not being written to the index file on train_index() in infer-web.py (#305)
1 parent aadf744 commit c2039b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infer-web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ def train_index(exp_dir1, version19):
801801
index.add(big_npy[i : i + batch_size_add])
802802
faiss.write_index(
803803
index,
804-
"%s/added_IVF%s_Flat_nprobe_%s.index" % (exp_dir, n_ivf, index_ivf.nprobe),
804+
"%s/added_IVF%s_Flat_nprobe_%s_%s.index" % (exp_dir, n_ivf, index_ivf.nprobe, version19),
805805
)
806806
infos.append(
807807
"成功构建索引,added_IVF%s_Flat_nprobe_%s_%s.index"

0 commit comments

Comments
 (0)