Semantic Granularity Metric Learning for Visual Search