Giter VIP home page Giter VIP logo

Comments (10)

Hakuyume avatar Hakuyume commented on July 27, 2024

I think it is better to unify keywords. I guessed current rules from the codes.

from chainercv.

Hakuyume avatar Hakuyume commented on July 27, 2024

@yuyu2172 How do think of it? Do you know other implicit rules?

from chainercv.

yuyu2172 avatar yuyu2172 commented on July 27, 2024

Thanks for summarizing this.
I have no complaint for everything, but the second one. I think we were discussing on the usage of cls inside eval_detection. I think this is under discussion.

Other than that, here are some that I came up.

  • For a name of a function or a class, image is used. As a name of a variable inside a function, img is used.
  • In extensions, models are named as target.

from chainercv.

Hakuyume avatar Hakuyume commented on July 27, 2024

@yuyu2172 thank you. I merged the rules you suggested. I changed the state of usage of class to "under discussion".

from chainercv.

yuyu2172 avatar yuyu2172 commented on July 27, 2024

Copied from #163, these are rules for bounding boxes.

  • bb is a (R,)
  • bbox is a (R, 4)
  • bboxes is a (B, R, 4) or list of (R_i, 4) i=1, ..., B.
  • rois is a (R', 4) which consists of bounding boxes for multiple images. Assuming that there are B images each containing R_i bounding boxes, R' = \sum R_i. rois comes together with a (R',) array called batch_indices, which contains batch indices of images to which bounding boxes correspond to.

For images, a similar rule applies like below.

  • img is a (C, H, W).
  • imgs is a (B, C, H, W) or a list of (C, H, W).

from chainercv.

Hakuyume avatar Hakuyume commented on July 27, 2024

@yuyu2172 Thank you. I merged them.

from chainercv.

yuyu2172 avatar yuyu2172 commented on July 27, 2024

I think there is another rule.

  • x is a variable whose shape can be inferred from context. It can be used only when there is no confusion on its shape.

from chainercv.

yuyu2172 avatar yuyu2172 commented on July 27, 2024

I think this naming conventions should be included in the documentation.

Here are some rules I found used in ChainerCV.

  • prob is used for probability. If this indicates multi-class probability, cls_prob is also acceptable. For convenience cls_ can be omitted.
  • roi_nouns represents values associated to rois. The shape is (R', ...).
    • In the case when the batchsize=1, variables can be renamed as noun = roi_nouns.

Rules specific to instance segmentation should also be documented.

from chainercv.

Hakuyume avatar Hakuyume commented on July 27, 2024

I think this naming conventions should be included in the documentation.

👍

from chainercv.

yuyu2172 avatar yuyu2172 commented on July 27, 2024

Another rule

  • cls_nouns is a multi-class version of nouns.
    • ex: cls_locs is (B, R, L, 4) and locs is (B, R, 4).

from chainercv.

Related Issues (20)

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.