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

Dataset creation issue #29

Open
aesanchezgh opened this issue Feb 17, 2022 · 2 comments
Open

Dataset creation issue #29

aesanchezgh opened this issue Feb 17, 2022 · 2 comments

Comments

@aesanchezgh
Copy link

aesanchezgh commented Feb 17, 2022

Hi,

When using make_dataset.py on the CelebA dataset, most of my images are failing on the face detection part? I am passing the 512x512 directory. Any idea what might be wrong? The part failing is here:

    def get(self, img, crop_size, max_num=0):
        bboxes, kpss = self.det_model.detect(img,
                                             threshold=self.det_thresh,
                                             max_num=max_num,
                                             metric='default')
        if bboxes.shape[0] == 0:
            return None, None

bboxes is empty and returns None, None for most images.

Thanks!

@kyugorithm
Copy link

Hi,

If your detector output None, the there is one choice the resize your detection size from 640 to smaller one.
It can improve your detection results.

@aesanchezgh
Copy link
Author

Ok thanks!

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