Questions tagged [pycocotools]
51 questions
10
votes
2 answers
COCO api evaluation for subset of classes
I'm using the python coco api to run evaluation for object detection. I have two files, a ground truth json, and a results json. The coco notebook demo only shows running eval for all classes. How can I run it for only one specific class or a subset…

Austin
- 6,921
- 12
- 73
- 138
9
votes
5 answers
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
I have problems when installing TensorFlow with object detection API.
I am follow the step in this URL: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md
The step:
git clone…

AINUL HAKIM BIN FIZAL SABILLAH
- 165
- 2
- 2
- 4
9
votes
7 answers
Could not install pycocotools in windows: fatal error C1083: Cannot open include file: 'io.h': No such file or directory error:
I'm new to machine learning and have started with a windows 8.1 pc having GeForce GTX 540M. I followed this tutorial to get started with the object detection models. I built my own dataset and tried to train it as per the tutorial but with…

kowsikbabu
- 499
- 1
- 6
- 23
7
votes
7 answers
How to Install pycocotools through Conda
Enviroment
OS:windows 7
Python:Python 3.7.3
Conda:conda 4.8.2
Step1: download soucre code of pococtools from github with linker fellowing: https://github.com/philferriere/cocoapi
Step2: build & install pococotall package by running
python setup.py…

Noodles
- 169
- 1
- 2
- 4
5
votes
2 answers
Failed to build pycocotools
I am new to machine learning and I am trying to download the requirements for a repo using
pip install -r requirements.txt
I am currently using Anaconda (3.7) version 2020.02. All the other requirements have been satisfied, this is the error I am…

Idioteche_fish
- 91
- 1
- 1
- 6
5
votes
1 answer
ModuleNotFoundError: No module named 'Cython' during pycocotools install after cython installation
I have a problem trying to install pycocotools in environment with python 3.6.9.
I'm running ubuntu 18.04 on my windows 10. I've created an environment and activated it. I want to install packages and I use :
pip install --user
When I…

Chris PERE
- 722
- 7
- 13
3
votes
1 answer
How to avoid Segmentation fault in pycocotools during decoding of RLE
Here is a sample of decoding corrupted RLE:
from pycocotools import mask # pycocotools version is 2.0.2
mask.decode({'size': [1024, 1024], 'counts': "OeSOk0[l0VOaSOn0kh0cNmYO'"})
As result it fails with Segmentation fault (core dumped)
It looks…

Yuriy Leonov
- 536
- 1
- 9
- 33
3
votes
5 answers
Troubleshooting pycocotools installation
I'm trying to use object detection models from Tensorflow and need to get pycocotools installed. I'm doing this from a python (3) virtual environment on a Windows 10 machine. There seems to be some known issues around getting this working on…

LJensen
- 31
- 1
- 1
- 4
3
votes
1 answer
How to use or install pycocoevalcap?
I'm new to use coco Datasets .. i got this error
# this requires the coco package, Link
from pycocoevalcap.bleu.bleu import Bleu
from pycocoevalcap.rouge.rouge import Rouge
from pycocoevalcap.cider.cider import Cider
ModuleNotFoundError: No…
user5520049
3
votes
1 answer
How to uninstall pycocotools installed via distils
I have a pycocotools version installed using distils in my system. I want to build and install from a different repo that has more recent changes and which has a issue fixed. But I get the following error. Any idea how I can resolve this…

user77005
- 1,769
- 4
- 18
- 26
3
votes
1 answer
How to fix "AttributeError: module 'pycocotools' has no attribute 'mask'" error in python
I am facing some issues even though I installed pycocotools correctly. Also, tried on colab where they have pycocotools already installed..
Installation method:
!git clone https://github.com/cocodataset/cocoapi.git
%cd…

Kadam Parikh
- 422
- 4
- 17
3
votes
1 answer
Error when importing package that have Visual C++ dependencies : invalid numeric argument '/Wno-cpp'
I am trying to load the pycocotools (from here) package using PyCharm on Window 10.
At first I had the following error :
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools":
So I installed Visual Studio 2019 and…

Nakeuh
- 1,757
- 3
- 26
- 65
2
votes
2 answers
AssertionError: Results do not correspond to current coco set - wrong types and sizes
I am struggling to stand up the torchvision tutorial MaskRCNN with my own use case. I have images with [0, N] instances of 3 classes each. I am attempting to identify and classify each segment. This breaks on the evaluation step of…

Duck Bongos
- 21
- 3
2
votes
1 answer
How to decode a COCO RLE binary mask to an image in javascript?
This is an example of a COCO RLE mask - https://pastebin.com/ZhE2en4C
It's an output from a YOLOv8 validation run, taken from the generated predictions.json file.
I'm trying to decode this string in JavaScript and render it on a canvas. The encoded…

Nikolay Dyankov
- 6,491
- 11
- 58
- 79
2
votes
0 answers
how to modify the gcc include path when install pycocotools?
I try to install pycocotools using someone else's miniconda environment:
pip install pycocotools
but get the following error message:
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (pyproject.toml) ... error
…

Jayn
- 45
- 1
- 7