SimSwapHD icon indicating copy to clipboard operation
SimSwapHD copied to clipboard

Dataset creation issue

Open aesanchezgh opened this issue 3 years ago • 2 comments

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!

aesanchezgh avatar Feb 17 '22 21:02 aesanchezgh

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.

kyugorithm avatar Mar 08 '22 03:03 kyugorithm

Ok thanks!

aesanchezgh avatar Mar 08 '22 21:03 aesanchezgh