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

data form for evaluating #86

Closed
foocker opened this issue Jul 19, 2019 · 4 comments
Closed

data form for evaluating #86

foocker opened this issue Jul 19, 2019 · 4 comments

Comments

@foocker
Copy link

foocker commented Jul 19, 2019

how change" agedb_30, agedb_30_issame = get_val_pair(data_path, 'agedb_30')" for my own dataset (img fold and labels).
len(agedb_30) = 12000, but len(agedb_30_issame)=6000, and sum(agedb_30_issame ) =3000, and is random. can you give some interpreation? thx.

@githubcyy
Copy link

@foocker hi, how do you evaluate the pretrained model? I use evaluate_model.ipynb, but something is wrong.
"agedb_30, agedb_30_issame = get_val_pair(data_path, 'agedb_30')"
"def get_val_pair(path, name):
carray = bcolz.carray(rootdir = path/name, mode='r')
issame = np.load(path/'{}_list.npy'.format(name))
return carray, issame"
there bcolz.carray() is wrong, no such file or directory.
i don't know why, can you give me some idea? thanks

@2151330
Copy link

2151330 commented Jul 22, 2019

@githubcyy I have the same problem. Have you solved your problem

@foocker
Copy link
Author

foocker commented Jul 22, 2019

@foocker hi, how do you evaluate the pretrained model? I use evaluate_model.ipynb, but something is wrong.
"agedb_30, agedb_30_issame = get_val_pair(data_path, 'agedb_30')"
"def get_val_pair(path, name):
carray = bcolz.carray(rootdir = path/name, mode='r')
issame = np.load(path/'{}_list.npy'.format(name))
return carray, issame"
there bcolz.carray() is wrong, no such file or directory.
i don't know why, can you give me some idea? thanks

carray = bcolz.carray(rootdir = path/name, mode='r')
issame = np.load(path/'{}_list.npy'.format(name))
when you prepare_data.py to the faces_emore.zip, you will get form of bcolz file and *.npy file.
i'm curious about the evaluate function its self. the mapping of the data and its label. you know?

@foocker
Copy link
Author

foocker commented Jul 22, 2019

i guess 12000 contain 9000 same class image and 3000 diff class image that random choose from the whole dataset, or 4500 pair same class and 1500 pair diff class img. is it right?@TreB1eN

i make some test, the image 12000, and label 6000, is not corresponding with pairs, that is to say: when
agedb_30[200] is a other class img, but agedb_30_issame[100] is True...., so how to correspond?

i will take more test, and the answer will be clear, thx...

right answer is: (0, 1 ), (2, 3), (4, 5) .... correspond label: 0, 1, 2 ...。3000 same pair 3000 diff pair, and the class between same pair and same piar can be diff or same.

@foocker foocker closed this as completed Jul 22, 2019
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

3 participants