Giter Site home page Giter Site logo

labels's Introduction

labels

Labels image/picture for deeplearning

labels_to_png.py

Transforms all png pictures used to labels images to json files. These json files work perfectly with label me. You can use after labelme2coco.py to do a COCO file.

Exemple to use : python png_to_json_4.py --folder_picture D:\images --folder_png D:\label --config D:\python\AutonomousCar\Data\cityscapes\config.json

you can find an exemple of config.json file in the repetory. It is defined color used and name of label.

labels's People

Contributors

sudecki30 avatar

Stargazers

 avatar

Watchers

 avatar

labels's Issues

can't iterate

Hi, can you help me please?

multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "D:\Segment\envs\trans\lib\multiprocessing\pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "d:\labels-master\png_to_json.py", line 149, in image_to_json
segmentations,areas,bboxs = create_sub_mask_annotation(mask, image_id, category_id, annotation_id, is_crowd)
File "d:\labels-master\png_to_json.py", line 53, in create_sub_mask_annotation
contour = np.vstack(contour).squeeze()
File "<array_function internals>", line 6, in vstack
TypeError: dispatcher for array_function did not return an iterable
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "d:/labels-master/png_to_json.py", line 251, in
for _ in tqdm.tqdm(pool.imap( image_to_json_partial, range(l)), total=l):
File "D:\Segment\envs\trans\lib\site-packages\tqdm\std.py", line 1178, in iter
for obj in iterable:
File "D:\Segment\envs\trans\lib\multiprocessing\pool.py", line 736, in next
raise value
TypeError: dispatcher for array_function did not return an iterable

-----How can I solve it?

version

Can you list the corresponding version of dependent packages?
I guess it influences a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.