Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,感谢你们的开源工作,能否用自己的数据进行验证呢?还有就是想把生成的全局描述子提取出来保存,是这部分代码吗? #5

Open
bobododosjl opened this issue Jul 14, 2024 · 2 comments

Comments

@bobododosjl
Copy link

if save:
# global desc
g_desc_pkl = os.path.join(g_desc_dir, f"{beg_idx + b_i}.bin")
with open(g_desc_pkl, 'wb') as handle:
pickle.dump(g_desc, handle, protocol=pickle.HIGHEST_PROTOCOL)
# local desc
l_desc_pkl = os.path.join(l_desc_dir, f"{beg_idx + b_i}.bin")
with open(l_desc_pkl, 'wb') as handle:
pickle.dump((l_pos, l_desc, norm_meta), handle, protocol=pickle.HIGHEST_PROTOCOL)

@zouxianghong
Copy link
Collaborator

zouxianghong commented Jul 14, 2024 via email

@bobododosjl
Copy link
Author

之前,数据集生成我已经参照你们代码改了,但是生成全局描述子过程中报错了,不知道我把pickle改为bin后缀,有没有影响。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants