Format code (#307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
c2039b6eca
commit
0fbfa1d62b
@ -801,7 +801,8 @@ def train_index(exp_dir1, version19):
|
|||||||
index.add(big_npy[i : i + batch_size_add])
|
index.add(big_npy[i : i + batch_size_add])
|
||||||
faiss.write_index(
|
faiss.write_index(
|
||||||
index,
|
index,
|
||||||
"%s/added_IVF%s_Flat_nprobe_%s_%s.index" % (exp_dir, n_ivf, index_ivf.nprobe, version19),
|
"%s/added_IVF%s_Flat_nprobe_%s_%s.index"
|
||||||
|
% (exp_dir, n_ivf, index_ivf.nprobe, version19),
|
||||||
)
|
)
|
||||||
infos.append(
|
infos.append(
|
||||||
"成功构建索引,added_IVF%s_Flat_nprobe_%s_%s.index"
|
"成功构建索引,added_IVF%s_Flat_nprobe_%s_%s.index"
|
||||||
|
Loading…
Reference in New Issue
Block a user