yolact icon indicating copy to clipboard operation
yolact copied to clipboard

Dataset images size?

Open dulre opened this issue 4 years ago • 2 comments

Hi i have manually labeled some images(.png and .jpg formats) with labelme and i converted the annotations to coco format using labelme2coco tool. My images are all of different size do i have to manually resize them to 512x512 ? If how i can do it without having to redo the labeling? It is fine to have pngs and jpgs in the dataset or i need to convert pngs to jpgs?

Thanks you!

dulre avatar Aug 23 '20 10:08 dulre

It's always resized, so you don't need to worry about labelling. Concerning the pngs, I think it would work. I didn't try but in data/coco.py where the images are loaded.

    img = cv2.imread(path)
    height, width, _ = img.shape

It doesnt care about channels... Well not sure. Just try out

suchiz avatar Sep 16 '20 08:09 suchiz

@suchiz Hi I have the same issue should I have to change my labels and my ground truth data or the network will take care of it?

bhuvanofc avatar Feb 24 '22 16:02 bhuvanofc