abhishekrana / DeepFashion

Apparel detection using deep learning
Apache License 2.0
256 stars 78 forks source link

the attributes dataset to train #6

Open zxczhkzxc opened 6 years ago

zxczhkzxc commented 6 years ago

thank you very much for your project,it's very help.but i have problem about the classification of attributes to ask for advice,class such as color,style,pattern;how can i do to finish this trough this project? Your help is really appreciated!

abhishekrana commented 6 years ago

You can add more heads(one for color, one for style and one for pattern) on the base model (currently there are 2 heads, classification and regression). [see model.py: line 44] But this would require that you already have labels i.e. color, style and pattern for each image(or part of image) which you are feeding into the model. You would have to modify the loss function accordingly. Then train all these 5 heads together. But i guess these things might be hard to learn for the network.

However, for color detection, you can just map the image(i.e. area inside bounding box) to color frequency and take the color having the highest frequency. (Assuming that major portion of the image is of the color you are interested in)

zxczhkzxc commented 6 years ago

thank you for your answer.can we use DeepFashion Dataset for classification of color, style and pattern ? i have't find the color attribute yet.for color detection,do you know some demo for application?i have a try to use opencv to detect the main color in an image,but it did not succeed