Giter Club home page Giter Club logo

Comments (15)

mrT23 avatar mrT23 commented on August 18, 2024 1

Could you provide the code of how to get the multi-label of each image according to words.txt file

all the transformation and semantic data can be found in the resource file. make sure you review it thoroughly
https://miil-public-eu.oss-eu-central-1.aliyuncs.com/model-zoo/ImageNet_21K_P/resources/winter21/imagenet21k_miil_tree.pth

you are also welcome to validate them via the link @cissoidx sent (that was my source for generating the tree)

from imagenet21k.

mrT23 avatar mrT23 commented on August 18, 2024

review thoroughly https://github.com/Alibaba-MIIL/ImageNet21K/blob/main/train_semantic_softmax.py file.

specifically the conversion is done in

class SemanticSoftmaxLoss(torch.nn.Module):

line 20

from imagenet21k.

aiot-tech avatar aiot-tech commented on August 18, 2024

Does the multi-label here refer to the multi-label of the same kind of the sematic tree, such as animal-dog-border_collie? But if a picture contains multiple different types of labels, such as animal-dog-border_collie, human-woman-young_woman, how to solve this problem?

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

So you extract the meaning of each category in imagenet22k, and then use wordnet to construct a semantic tree. Finally, the semantic tree is used to generate multi-label information for each category, that is, the multi-label information of all images in each directory of imagenet22k is the same.

from imagenet21k.

mrT23 avatar mrT23 commented on August 18, 2024

So you extract the meaning of each category in imagenet22k, and then use wordnet to construct a semantic tree. Finally, the semantic tree is used to generate multi-label information for each category, that is, the multi-label information of all images in each directory of imagenet22k is the same.

i did not understand if there is a question or not. your description seems correct

from imagenet21k.

mrT23 avatar mrT23 commented on August 18, 2024

Does the multi-label here refer to the multi-label of the same kind of the sematic tree, such as animal-dog-border_collie? But if a picture contains multiple different types of labels, such as animal-dog-border_collie, human-woman-young_woman, how to solve this problem?

it won't. the base tagging of original imagenet21K is single label.

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

Where can I find the mapping between class ids and class names of the original ImageNet-21K?

from imagenet21k.

mrT23 avatar mrT23 commented on August 18, 2024

https://raw.githubusercontent.com/niharikajainn/imagenet-ancestors-descendants/master/words.txt

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

Thank you very much

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

Could you provide the code of how to get the multi-label of each image according to words.txt file

from imagenet21k.

cissoidx avatar cissoidx commented on August 18, 2024

Could you provide the code of how to get the multi-label of each image according to words.txt file

same question here

from imagenet21k.

cissoidx avatar cissoidx commented on August 18, 2024

Could you provide the code of how to get the multi-label of each image according to words.txt file

@SJLeo

https://github.com/niharikajainn/imagenet-ancestors-descendants
check the categories.py file

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

Could you provide the code of how to generating the tree

from imagenet21k.

mrT23 avatar mrT23 commented on August 18, 2024

No at the moment. you are welcome to write a code of your own and validate the tree.

from imagenet21k.

SJLeo avatar SJLeo commented on August 18, 2024

Thank you very much

from imagenet21k.

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.