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

数据集组织需要什么特别处理么? #59

Open
Sunwzh opened this issue Jan 20, 2018 · 1 comment
Open

数据集组织需要什么特别处理么? #59

Sunwzh opened this issue Jan 20, 2018 · 1 comment

Comments

@Sunwzh
Copy link

Sunwzh commented Jan 20, 2018

我看您给出的例子中的train_val.txt中的数据格式并没有特殊的组织成三元组的形式,但是在selectlayer中的代码中,假设有9个样本,是取前三个个作为archor,中间三个作为正样本,后三个作为负样本,如果这样做的话,不需要对输入样本进行组织,以满足每个batch都符合这种结构么?

@wadefelix
Copy link

@Sunwzh 看datalayer啊,是处理了的,第一个样本会被选为anchor并被复制三次(triplet个数),再选同类三个作为正样本,再选非同类三个作为负样本。

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