Questions tagged [pycocotools]
51 questions
1
vote
2 answers
Unable to install pycocotools on Google AI-Platform (CMLE)
I'm getting this error while trainer package installation on AI-Platform,
Traceback (most recent call last): File "", line 1, in
File "/tmp/pip-install-_u8thvm6/pycocotools/setup.py", line
2, in from Cython.Build import cythonize ImportError:…

Swapnil Masurekar
- 458
- 1
- 9
- 21
1
vote
1 answer
Evaluation on Coco-type data set returns error
I am using the Faster R-CNN model available from https://github.com/facebookresearch/maskrcnn-benchmark. I am trying to evaluate the results of a trained model on the KITTI data set, after converting it to Coco Format (2D object detection).
The…

user2277994
- 77
- 2
- 12
0
votes
0 answers
I am getting zero values for Average precision and Average Recall when using pycocotools
I'm trying to evaluate the performance of a model using Pycocotools, it requires that you prepare the ground truth (gt) bboxes and detections (dt) bboxes as json files in a COCO style format.
I worked a lot on creating those json files and avoided…
0
votes
0 answers
how to fix pycocoevalcap.meteor unkown location
Traceback (most recent call last):
File "/mnt/c/Users/smska/Desktop/research/wcl/main.py", line 7, in
from modules.metrics import compute_scores
File "/mnt/c/Users/smska/Desktop/research/wcl/modules/metrics.py", line 2, in
from…
0
votes
0 answers
How to solve pycocotools installation error
I have a problem installing a dependency for the layoutpharser library in python.
This dependency is pycocotools.
So I tried following the instructions given by the GitHub page, which I link at the end, which said to install this dependency with the…

fANNyCOttero
- 1
- 1
0
votes
0 answers
pycocotools fails to install on python 3.7 0r 3.6
`I want to install pycocotools in python 3.7 version.(basically downgrade to 3.7)
!pip install -q pycocotools
I used this above command in google colab.
But i got some error. Please help me in this regard.
I am expecting to run the pycocotools in…

shahriar sajal
- 311
- 2
- 3
0
votes
1 answer
VS Code error when importing pycocotools.coco
I'm trying to use VScode for image processing in Python, I cloned a repo from GitHub to try it out, but code fails at the line from pycocotools.coco import COCO .
I Googled it, and installed the Visual C++ Build tools, and cloned the coco github…

vivi25-5
- 55
- 5
0
votes
0 answers
Getting Error while using Custom Data Generator in Tensorflow to Train U-Net Model using custom coco dataset
When I try to train the U-net model with a custom data generator function I get an error from tensorflow.
I tried changing the shapes etc and troubleshooted a lot.There is some logical error i guess, please help solving this issue
Data Generator…

Navneeth S
- 11
- 3
0
votes
0 answers
need to find false positive, false negative, true positive from comparing two different ground truth for same image
enter image description here green is ground truth and the red box is another ground truth An image-1 has one ground truth annotation file and I have drawn a new annotation for it. I need to know whether the new annotations contain all the previous…

Kapil Dev
- 1
- 1
0
votes
0 answers
ERROR: Failed building wheel for pycocotools
I am trying to install pycocoevalcap with
pip install pycocoevalcap
While it is installing pycocotools following error occurs which does not happen normally:
LOG LOG LOG LOG LOG LOG LOG LOG LOG LOG LOG
LOG LOG LOG LOG LOG LOG LOG LOG LOG LOG…

tealy
- 132
- 1
- 12
0
votes
0 answers
Azure Functions Python ModuleNotFoundError: No module named 'Cython', even though it is installed earlier
I am running Python 3.9 in Azure Functions and am trying to install pycocotools from Github using this line in my requirements.txt:
git+https://github.com/gautamchitnis/cocoapi.git@cocodataset-master#egg=pycocotools&subdirectory=PythonAPI
It fails…

Kevin K.
- 1
0
votes
1 answer
How to read specific keypoints in COCOEval
I need to calculate the mean average precision (mAP) of specific keypoints (and not for all keypoints, as it done by default).
Here's my code :
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
#…

Armand Assault
- 29
- 1
- 5
0
votes
0 answers
Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
when i "pip install pycocotools":
pycocotools/_mask.c:4:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
[end of output]
note:…

zhangjunyang
- 1
- 1
0
votes
0 answers
how to fix this "Failed to build pycocotools" error
while i am trying to install pycocotools. it resulted in this error :-
enter code here
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools…
0
votes
1 answer
Error with installation of pycocotools for Detr Tensorflow
I'm trying to use Detr Tensorflow models and need to install pycocotools. On a Windows 10 PC, I'm executing this in a Visual Studio Code. I'm following the steps provided in this
GitHub repo :…