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

Error generating tfdata_12net #6

Open
vonclites opened this issue Aug 3, 2018 · 4 comments
Open

Error generating tfdata_12net #6

vonclites opened this issue Aug 3, 2018 · 4 comments

Comments

@vonclites
Copy link

After running gen_shuffle_data.py, I get 644,000 negative samples.

https://github.com/wangbm/MTCNN-Tensorflow/blob/4ae3a720dc08aebb107f9ed0335c7b0b5e3e22c6/prepare_data/gen_tfdata_12net.py#L77

generates an error because I cannot sample 1,000,000 times without replacement from a pool of 644,000.

Is this intended to be sampling 100,000 times? Or was gen_shuffle_data.py supposed to generate over a million samples?

Thanks!

@Honourab
Copy link

I found the same error with you

@johnny88850tw
Copy link

I think that's because the dataset is not enough 1000000, you can set replace=True, but it cause the dataset will be reselected.

@kyawthiha31
Copy link

I changed 'replace=True' to my script and still lead to the error.

@galuhputraa
Copy link

change line 77 into this:
try:
neg_keep = npr.choice(len(neg), size=1000000, replace=False)
except ValueError:
neg_keep = npr.choice(len(neg), size=1000000, replace=True)

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

5 participants