Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maycuatroi/pycocotools-window
Clone of COCO API - Dataset @ http://cocodataset.org/ - with changes to support Windows/change object's id to string build and python3
https://github.com/maycuatroi/pycocotools-window
Last synced: 4 months ago
JSON representation
Clone of COCO API - Dataset @ http://cocodataset.org/ - with changes to support Windows/change object's id to string build and python3
- Host: GitHub
- URL: https://github.com/maycuatroi/pycocotools-window
- Owner: maycuatroi
- License: other
- Created: 2018-09-07T08:04:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T21:40:03.000Z (over 4 years ago)
- Last Synced: 2024-08-01T13:25:57.350Z (7 months ago)
- Language: Jupyter Notebook
- Size: 11.9 MB
- Stars: 35
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
Clone of COCO API - http://cocodataset.org/
===========================================# Original README:
COCO is a large image dataset designed for object detection, segmentation, person keypoints detection, stuff segmentation, and caption generation. This package provides Matlab, Python, and Lua APIs that assists in loading, parsing, and visualizing the annotations in COCO. Please visit http://cocodataset.org/ for more information on COCO, including for the data, paper, and tutorials. The exact format of the annotations is also described on the COCO website. The Matlab and Python APIs are complete, the Lua API provides only basic functionality.
In addition to this API, please download both the COCO images and annotations in order to run the demos and use the API. Both are available on the project website.
Please download, unzip, and place the images in: coco/images/
Please download and place the annotations in: coco/annotations/
For substantially more details on the API please see http://cocodataset.org/#download.
# This clone's README:
To support Windows build and python3 we had to make [minor changes](https://github.com/cocodataset/cocoapi/compare/master...philferriere:master#diff-49ecc5c8e93163121e2cc2eb6b1fca2c) to:
- `PythonAPI/setup.py`
- `PythonAPI/pycocotools/coco.py`To install this package, use `pip` as follows:
```
(dlwin36coco) pferr@MSI d:\repos
$ pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Collecting pycocotools from git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
Cloning https://github.com/philferriere/cocoapi.git to c:\users\pferr\appdata\local\temp\pip-build-6n1mxmto\pycocotools
Installing collected packages: pycocotools
Running setup.py install for pycocotools ... done
Successfully installed pycocotools-2.0
```On Windows, you must have the Visual C++ 2015 build tools on your path. If you don't, make sure to install them from [here](https://go.microsoft.com/fwlink/?LinkId=691126):

Then, run `visualcppbuildtools_full.exe` and select default options:

# Why have the demo notebooks been moved into their own directory?
If you clone/fork the **original** repo, you may hit the following error when running the demo notebooks:

It happens because there is a `pycocotools` directory in the same folder as the notebooks. The python code being imported then is the **local** implementation of `pycocotools`, not the one installed with `pip`. To fix this issue, the demo notebooks have been moved to their own directory.