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

Training your code on custom dataset #54

Open
abhisheksgumadi opened this issue Oct 25, 2017 · 1 comment
Open

Training your code on custom dataset #54

abhisheksgumadi opened this issue Oct 25, 2017 · 1 comment

Comments

@abhisheksgumadi
Copy link

hi,

I kind of understand the steps required to train and my question is specifically with respect to preparing the dataset for training. I see img folder and the data folder.

Inside img folder let us say we have images named like 1.jpg, 2.jpg, 3.jpg and so on. How should my trainval.txt file look like in data folder? is it enough for it have on every line the name of the file for every image followed by space and the label like:

1.jpg 1
2.jpg 1
3.jpg 5

and so on where 1.jpg belongs to class 1, 2.jpg belongs to class 2 and 3.jpg belongs to class 5 and so on?

Please let me know what you think.

Thanks
Abhishek S

@ccJia
Copy link

ccJia commented Nov 1, 2017

@abhisheksgumadi I use mark-1501 as the data-set . And I just read all the train image into a python dictionary or a C++ map. The key is the group number and the value is a list of image names. Every iteration you can just select a group number and find the two images in this group as anchor and positive sample. And find another group number and find one image in this group as negative sample. And the loss function just get the distance between these three samples.

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