Git Product home page Git Product logo

fashionpedia-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fashionpedia-api's Issues

Wrong prediction

Instead of the line below in baseline_predictor_demo.ipynb

detections_str = '{} ({}%)'.format(ontology['categories'][detection_classes[i]]['name'],
                                           int(100*detection_scores[i]))

it should be this for correct class prediction:
detections_str = '{} ({}%)'.format(ontology['categories'][detection_classes[i]-1]['name'],int(100*detection_scores[i]))

And can you please open-source your training code. Lots of enthusiasts have been waiting for this code now. Thanks

Question about baseline result

Great repository and dataset. But I have some problem reproducing the result.

I trained a Mask-RCNN with detectron2 without using the attribute value of the dataset. The model was trained with mask_rcnn_R_50_FPN_1x.yaml config of detectron2. I only change the learning rate to 1e-3 for the sake of convergence. It seems that the network can predict the bounding box and masks, but it gives a pretty low confidence. This lead to very low mAP(about 7, should be around 30 or 40). My code works fine on deepfashion2 dataset(mAP 69).

It will be helpful if you can share some more detailed configurations about how to achieve the baseline. Thanks !

visualize2

visualize1

getImgIds() doesn't return the combination of images from multiple category ids

First of all, thank you for sharing your work! While running the following code modified from the demo, looks like fp.getImgIds() doesn't return the correct combination of images from multiple category ids. The code is as follows:

`import numpy as np
import os

from fashionpedia.fp import Fashionpedia

anno_file = "./data/sample.json"
img_root = "./images"

fp = Fashionpedia(anno_file)

cat_ids = [24]
img_ids = fp.getImgIds(catIds=cat_ids)
print("category ", cat_ids, " has img ids ", img_ids)

cat_ids = [6]
img_ids = fp.getImgIds(catIds=cat_ids)
print("category ", cat_ids, " has img ids ", img_ids)

cat_ids = [10]
img_ids = fp.getImgIds(catIds=cat_ids)
print("category ", cat_ids, " has img ids ", img_ids)

cat_ids = [6, 24]
img_ids = fp.getImgIds(catIds=cat_ids)
print("category ", cat_ids, " has img ids ", img_ids)

cat_ids = [6, 24, 10]
img_ids = fp.getImgIds(catIds=cat_ids)
print("category ", cat_ids, " has img ids ", img_ids)
`

The output is:

category [24] has img ids [9813]
category [6] has img ids [10223]
category [10] has img ids [9813]
category [6, 24] has img ids []
category [6, 24, 10] has img ids []

I think the last two outputs should be [9813, 10223]? Or I'm miss understanding the meaning of getImgIds()?

Thanks
~

What's the threshold of attributes

Hi,
Thanks for your excellent work and It's awesom to have segment ontology annotations.
And what is the the threshold of attributes in the inference?
Thanks.

Segmentation mask draw

@KMnP In the file baseline_predictor_demo.ipynb in the last code block there is a comment :

# draw segmentation mask

followed by some code using predicted segmentation masks but the resulting image does not have masks drawn on it. Am i missing something?

Model Cannot Predict any Shirts (Class Id 0)

Hi. Thanks for your great job!

When I am trying to check your model with your baseline predictor it cannot detect any shirts. Maybe a problem with training phase?

Since TF object detection api requires 1-based indexing for labels I think the problem may be related to your label map being 0-indexed. Check this out

Not able to restore model ckpts

Dear Yin Cui,

First of all it is Great! to see fashionpedia model ckpts with different backbones and their performances have been shared in: https://github.com/tensorflow/tpu/tree/master/models/official/detection/projects/fashionpedia

However, when I was trying to load a model ckpt "SpineNet-143" using following code:

with tf.Session() as sess:
saver = tf.train.import_meta_graph('./spinenet-143/model.ckpt.meta')
saver.restore(sess,tf.train.latest_checkpoint('./spinenet-143/'))

i was getting following error:

"NotFoundError: Op type not registered 'LegacyParallelInterleaveDatasetV2' in binary running on 7d386b9416f5. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed."

Could you please look into the issue and let us know as how we can load the model to test inference ?

Also it will be great if we can get frozen model (.pb format) similar to example given in "baseline_predictor_demo.ipynb"

Thanking you!

Regards,

Abhishek

How should I extract segmentation ontology from annotations?

Hi,

Thanks for your excellent work and It's awesom to have segment ontology annotations.
But how should I extract the parent-children relationship from the segmentation annotations?
BTW, do you know if there is another dataset having ontology annotations.

Thanks

Model code

Hi @KMnP when will you be open sourcing the code to build the model? Many enthusiasts are waiting for the release. Thank you

class-agnostic attributes or not ?

Hi,
Thanks for your excellent work and It's awesom to have segment ontology annotations.
But the attributes are class-agnostic or class-specfic?
Thanks.

Module error in New tensorflow/tpu inference code

Hi, first of all great work with the new SpineNet 143 model with amazing accuracy. I am facing error while running the fashionpedia project of tensorflow/tpu on colab. This is my notebook.

When I do this inside the file inference.py

import sys
sys.path.insert(0, '/content/tpu/models/official/detection')

the previous error in my notebook goes but then the error comes

from hyperparameters import params_dict
ModuleNotFoundError: No module named 'hyperparameters'

How to import all files properly? please guide.
Thanks @KMnP @richardaecn It would be great if you can time some time to release a colab on how to do inference for beginners.

about train annotation

Hi Thanks for your work!
But I found there are duplicated anno id in annotations and may cause mismatch between anns and imgs when using coco api
Thanks again

Retrieve main garment mask

Greetings! Great job on constructing such a dataset! Thank you!
But I don't find a way to retrieve the main garment.
Example:
Current:
Segmentation 0:
Category: pocket
Attribtues:
218: patch (pocket)
Segmentation 1:
Category: sleeve
Attribtues:
204: set-in sleeve
205: dropped-shoulder sleeve
159: three quarter (length)
Segmentation 2:
Category: sleeve
Attribtues:
205: dropped-shoulder sleeve
159: three quarter (length)
Segmentation 3:
Category: sock
Segmentation 4:
Category: sock
Segmentation 5:
Category: collar
Attribtues:
163: shirt (collar)
Segmentation 6:
Category: shirt, blouse
Attribtues:
225: single breasted
295: no non-textile material
137: loose (fit)
145: no waistline
115: symmetrical
148: micro (length)
149: mini (length)
316: no special manufacturing technique
317: plain (pattern)

What I want to see:
Segmentation 0:
Category: shirt, blouse
Attribtues:
225: single breasted
295: no non-textile material
137: loose (fit)
145: no waistline
115: symmetrical
148: micro (length)
149: mini (length)
316: no special manufacturing technique
317: plain (pattern)
Segmentation 1:
Category: sock
Segmentation 2:
Category: sock

Is it possible to retrieve information in such a way?
Thank you very match, and fill free to close this issue if you already have it.

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.