Git Product home page Git Product logo

pic-challenge's Introduction

Examples of reading data:

Assume that we want to get the annotation of a certain image whose imgname = 'indoor_02018.jpg', we can use cv2 to read instance annotation:

ins = cv2.imread(imagename.replace('.jpg','.png'),cv2.IMREAD_GRAYSCALE)

the corresponding semantic segmentation annotation can be read likewise.

To get the relation annotation whose annotation file name is 'relation.json', run:

rel = Relation()
rel.loadAnnot('relation.json')

To get the relation annotation of a certain image, for example, 'indoor_00002.jpg', run:

relation = rel.loadRelation('indoor_02018.jpg')

Visualization

To visualize the semantic segmentation map, we can run:

visualize_segmentation(segmentationMap, img)

To visualize the instance map of a certain category, we can run:

visualize_instance(instanceMap, segmentationMap, oriImg)

To visualize relation, run:

visualize_relation(relation, instanceMap, img)

img is the original image.

Evaluation code is coming soon.

pic-challenge

pic-challenge

pic-challenge

pic-challenge's People

Contributors

yueliao avatar

Forkers

sui6662012

pic-challenge's Issues

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.