Questions tagged [pycocotools]
51 questions
2
votes
1 answer
inner holes in segmentation polygons -coco dataset
So to explain the problem
I have a dataset with the coco format
I want to reconstruct the binary mask from the segmentation information stored in the annotation json file
here is the
target mask
in here it is the reconstructed mask
As you can see…

hakim47
- 33
- 3
2
votes
0 answers
How to get class_id for every image?
How can i dump in the file class_id of the image, if i'm using mmdetection.
Should i change in class aips/test.py or datasets/coco.py or the config file for the model ?
as what i'm got this array for every image
[3.41282135e+02, 2.03359509e+01,…

user
- 87
- 9
2
votes
1 answer
install detectron2 package on Docker
I am using the python 3.7.9 version. The dectron2 is not installed properly.
command:
docker exec -it 1ee02b74a599 /bin/bash
root@1ee02b74a599:/app# pip install detectron2==0.2.1 -f …

Bhuvaneswari
- 21
- 4
2
votes
1 answer
COCO python API is installed but can't import it
I'm using Azure Databricks to run my python code. For that I want an image dataset from COCO to be imported; for which I have installed pycocotools API. But when I'm trying to import the library I am getting an error 'No module named "pycocotools"…

Luiy_coder
- 321
- 2
- 11
1
vote
2 answers
install pycocotools in Mac m1
python 3.9
pip 22.3.1
setuptools 66.0.0
wheel 0.38.4
when install yolox, there is always error in installing pycocotools as below:
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [33 lines of…

Patrick
- 11
- 1
1
vote
0 answers
Pycocotools precision and recall
In pycocotools in cocoeval.py sctipt there is COCOeval class and in this class there is accumulate function for calculating Precision and Recall. Does anyone know what is this npig variable? Is this negative-positive or?
Because I saw this formula…

NJR11
- 41
- 4
1
vote
0 answers
Specify special build and install order with requirements.txt for pip installs on Azure functions
For a Python based Azure function I need to specify the dependencies using…

Joysn
- 987
- 1
- 16
- 30
1
vote
1 answer
Write COCOeval summary to tensorboard
I am using pycocotools to evaluate my R-CNN model
coco_eval = pycocotools.cocoeval.COCOeval(coco_gt)
I perform all of the necessary computations and then call
coco_eval.accumulate()
coco_eval.summarize()
This prints a table more or less like this
…

alagris
- 1,838
- 16
- 31
1
vote
1 answer
pip3 install mmdet giving an error failed to build pycocotools
When installing OpenMMDetection toolbox, I try to install mmdet package but it gives the following erro.
I installed VSC++ 14.20 and following an error with "visual studio c++ 14.0 or greater required" message.ERROR: Could not build wheels for…

UnholyTsar
- 11
- 1
1
vote
0 answers
How do I take COCO formatted json and compare them to ground truth images?
I am looking for some help with COCO jsons.
I have a set of images that I have labelled with 10 sided polygons (blue blobs).
I have another set of images with the ground truth areas (yellow blobs).
I want to compare the area/number of pixels of the…
user18636096
1
vote
0 answers
COCO API evaluation for subsets of key points classes
I'm using the python coco API to run evaluation for Key points estimation. I have two files, a ground truth json, and a results json.
My goal is to evaluate KP estimation performance for ALL KP classes.
For example, for category 'person', I want…

Alex Goft
- 1,114
- 1
- 11
- 23
1
vote
0 answers
problem using pycocotools for Scaled Yolo v4 in pytorch : numpy version dilemma
my setting is
python 3.9
numpy 1.21.0
cuda 10.2
right now i'm having a problem receiving two error messages.
one is :
ERROR: pycocotools unable to run: 'numpy.float64' object cannot be interpreted as an integer
second is :
ERROR: pycocotools unable…

water MINERAL
- 11
- 1
1
vote
0 answers
How to pip install pycocotools on windows
this is the error said i don't know how to solve this
Building wheel for pycocotools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Administrator\anaconda3\envs\tensorflow\python.exe' -u -c 'import io,…

邱俊安
- 11
- 2
1
vote
1 answer
How to install pycocotools on Windows 10
I am trying to install pycocotools on Windows 10. I used this command:
pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI
You can see the error output in the following picture:
Any ideas on how to…

CoderOfTheForce
- 359
- 7
- 22
1
vote
1 answer
Pytorch sending inputs/targets to device
Currently using the pycocotools 2.0 library.
My train_loader is:
train_loader, test_loader = get_train_test_loader('dataset', batch_size=16, num_workers=4)
However the training lines of code:
for i, data in enumerate(train_loader, 0):
…

ben
- 29
- 2
- 6