Questions tagged [coco]

A CoffeeScript dialect that aims to be more radical and practical.

A CoffeeScript dialect that aims to be more radical and practical.

Read More.

Online shell

66 questions
1
vote
2 answers

Extract annotations from COCO Dataset annotation file

I want to train on a subset of COCO dataset. For the images, I have created a folder of first 30k images of train2017 folder. Now I need annotations of those 30k images (extracted from instances_train2017.json) in a separate json file so that I can…
Capri
  • 13
  • 2
  • 7
1
vote
0 answers

From LabelMe .xml polygon to coco format .json

I have this kind of labeled polygon type .XML files. how can I convert it to the coco .json segmentation formatThis is .XML file format
1
vote
2 answers

How to train Detectron2 model with multiple custom dataset

I would like to train the detectron2 model with registering multiple datasets I have extracted my annotations from the different tasks and now I have multiple datasets which we need to be trained together. Datasets Folder Task1 -- annotations.json …
1
vote
1 answer

how to generate a COCO dataset from black and white masks

I have a dataset composed by welds and masks (white for weld and black for background), although I need to use Mask R-CNN so I have to convert them to COCO dataset annotation. Does anybody have any suggestions on how to do this? I tried this one:…
1
vote
1 answer

converting json annotation to coco format

I have annotated my data using vott and the default format is json. I wanted to load my data to detectron2 model but it seems that the required format is coco. Can anyone tell me how can I convert my data from json vott to coco format ??
1
vote
1 answer

COCO .json file contains strange segmentation values in the annotattions, how to convert these?

I have a COCO format .json file which contains strange values in the annotation section. Most segmentations here are fine, but some contain size and counts in non human-readable format. When training my model, I run into errors because of the weird…
Rivered
  • 741
  • 7
  • 27
1
vote
1 answer

Object Detection (coco-ssd) Node.js: Error: pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement

I am using on my iobroker on node.js tensorflow-models/coco-ssd'. How do i have to load the image? When i do it like i do, i get an error: Error: pixels passed to tf.browser.fromPixels() must be either an HTMLVideoElement, HTMLImageElement,…
uwe72
  • 13
  • 4
1
vote
0 answers

About MS COCO dataset Evaluation! Image Size! (question about COCO dataset.)

I am a student currently studying object detection! I have a question about COCO dataset. I'm currently experimenting with COCO datasets, and there's APs APm APL in the performance evaluation metrics. 32X32 or less for APs, 32x32 to 96×96 for APm,…
jhLee
  • 11
  • 1
1
vote
2 answers

AttributeError: module 'tensorflow._api.v2.sets' has no attribute 'set_intersection'

Even though I tried, I couldn't solve this mistake. https://www.youtube.com/watch?v=GSDbfGsxruA I almost got to the last step when I added The Mask RCNN, but I'm stuck here. Error Log AttributeError Traceback (most recent…
1
vote
1 answer

How can i test yolov3 and yolov4 weight files?

I'm trying to object detection with yolov3 and yolov4 and i just want to train 1 class= person. I'm using COCO datasets. After training how i can tested my weight file? I want to test all "test dataset" not only 1 image. I have train loss graphic…
Cansel Oğuz
  • 88
  • 2
  • 8
1
vote
2 answers

From Coco annotation json to semantic segmentation image like VOC's .png in pytorch

I am trying to use COCO 2014 data for semantic segmentation training in PyTorch. I have a PSPNet model with a Cross Entropy loss function that worked perfectly on PASCAL VOC dataset from 2012. Now I am trying to use a portion of COCO pictures to…
7029279
  • 485
  • 1
  • 6
  • 15
1
vote
1 answer

COCO dataset number of images per classes

I see COCO2017 has 80 classes 118k training and 5k validation dataset(122k images). I have a question here. Does the number of images per classes(1525 images per class) which is ~ 122k / 80?
1
vote
0 answers

Minimalist example of convertion from custom dataset to COCO format with pycococreator

The aim is to convert a numpy array (2164, 190, 189, 2) containing pairs of grayscaled+groundtruth images to COCO format: I tried to generate a minimalist annotation in coco format as follow: from pycococreatortools import pycococreatortools N =…
Jean-Pat
  • 1,839
  • 4
  • 24
  • 41
1
vote
1 answer

Coco to LiveScript migration

I am migrating a small script from coco to LiveScript: D = (obj, l = 20) -> if (l > 0) new @[k] = (try D(v, l - 1) catch (e) e) for k, v in obj else obj This code, which is valid in coco, does not compile in LiveScript: Parse…
TN.
  • 18,874
  • 30
  • 99
  • 157
0
votes
1 answer

Incorrect bounding box centre detection during object recognition, OpenCV, Python

I have a problem with defining the centre of an object using OpenCV (I'm using version 4.5.5.64). I am using "coco.names" for object recognition, and I have a function "show_distance" in my code, which is designed to calculate the centre of the…
Osa
  • 21
  • 2