Apparel

The 'Apparel' model recognizes more than 100 fashion-related concepts including clothing and accessories. This model is great for anyone building a fashion-related app such an e-commerce platform or a fashion curation site.

Please note that this endpoint is currently in ALPHA testing and may change at any time.

GO TO DOCUMENTATION Updated Dec 20, 2016

Demo

Info

Info

MODEL NAME

Apparel

OWNER

Clarifai

MODEL ID

e0be3b9d6a454f0493ac3a30784001ff

UPDATED AT

Dec 20, 2016

CONCEPTS

Blouse, Bracelet, Casual Dress, Fleece Jacket, Loafers, Pant Suit and more

ALPHA

Please note that this model is currently in ALPHA testing and may change at any time

Request

The 'Apparel' model is trained to recognize objects in traditional e-commerce contexts such as white background product shots.

You can call the Predict API with the 'Apparel' model. Simply pass in an image input with a publicly accessible URL or by directly sending image bytes.

You can learn more about the Predict API in our API Guide.

POST
curl -X POST
    -H 'Authorization: Bearer {access_token}'
    -H "Content-Type: application/json"
    -d '
    {
      "inputs": [
        {
          "data": {
            "image": {
              "url": "https://samples.clarifai.com/apparel.jpeg"
            }
          }
        }
      ]
    }'
    https://api.clarifai.com/v2/models/e0be3b9d6a454f0493ac3a30784001ff/outputs

Response

The Predict API returns a list of concepts (such as recognized clothing or accessory item) with corresponding probability scores on the likelihood that these concepts are contained within the image.

Response
{
  "status": {
    "code": 10000,
    "description": "Ok"
  },
  "outputs": [
    {
      "id": "bf5624d671404b1583581cd39887ba89",
      "status": {
        "code": 10000,
        "description": "Ok"
      },
      "created_at": "2017-01-23T22:20:43Z",
      "model": {
        "name": "apparel",
        "id": "e0be3b9d6a454f0493ac3a30784001ff",
        "created_at": "2016-12-20T22:43:29Z",
        "app_id": null,
        "output_info": {
          "message": "Show output_info with: GET /models/{model_id}/output_info",
          "type": "concept"
        },
        "model_version": {
          "id": "dc2cd6d9bff5425a80bfe0c4105583c1",
          "created_at": "2016-12-20T22:43:29Z",
          "status": {
            "code": 21100,
            "description": "Model trained successfully"
          }
        }
      },
      "input": {
        "id": "bf5624d671404b1583581cd39887ba89",
        "data": {
          "image": {
            "url": "https://samples.clarifai.com/apparel.jpeg"
          }
        }
      },
      "data": {
        "concepts": [
          {
            "id": "ai_hlBWBcP8",
            "name": "Men's Boots",
            "app_id": null,
            "value": 0.9098706
          },
          {
            "id": "ai_Xfs5V5DH",
            "name": "Women's Boots",
            "app_id": null,
            "value": 0.8378669
          },
          {
            "id": "ai_6nF00KsR",
            "name": "Men's Dress Shoes",
            "app_id": null,
            "value": 0.51617044
          },
          {
            "id": "ai_SGXgBwzJ",
            "name": "Sneakers",
            "app_id": null,
            "value": 0.4027321
          },
          {
            "id": "ai_Z79pShcW",
            "name": "Oxfords",
            "app_id": null,
            "value": 0.31673414
          },
          {
            "id": "ai_z5F7XFlb",
            "name": "Platform Shoes",
            "app_id": null,
            "value": 0.26313087
          },
          {
            "id": "ai_LLG9S3Fg",
            "name": "Women's Sandals",
            "app_id": null,
            "value": 0.11715398
          },
          {
            "id": "ai_PpNXZGZl",
            "name": "Loafers",
            "app_id": null,
            "value": 0.054964043
          },
          {
            "id": "ai_0PM9RnsJ",
            "name": "Pumps",
            "app_id": null,
            "value": 0.03545089
          },
          {
            "id": "ai_F342tGZK",
            "name": "Men's Sandals",
            "app_id": null,
            "value": 0.025816612
          },
          {
            "id": "ai_P2cKDGMW",
            "name": "Clogs",
            "app_id": null,
            "value": 0.019831084
          },
          {
            "id": "ai_0tqh85Gt",
            "name": "Boat Shoes",
            "app_id": null,
            "value": 0.015857182
          },
          {
            "id": "ai_Vd77t72x",
            "name": "Dress",
            "app_id": null,
            "value": 0.012866198
          },
          {
            "id": "ai_jt5kSMNT",
            "name": "Socks",
            "app_id": null,
            "value": 0.009680631
          },
          {
            "id": "ai_5Zj0kZRQ",
            "name": "Belt",
            "app_id": null,
            "value": 0.003069903
          },
          {
            "id": "ai_nVG9jntC",
            "name": "Capris",
            "app_id": null,
            "value": 0.0029156085
          },
          {
            "id": "ai_FK40S8BP",
            "name": "Swimwear",
            "app_id": null,
            "value": 0.0027856198
          },
          {
            "id": "ai_mtd6x6QM",
            "name": "Flats",
            "app_id": null,
            "value": 0.0024821297
          },
          {
            "id": "ai_FjJsXq9G",
            "name": "Women's Board Shorts",
            "app_id": null,
            "value": 0.00247129
          },
          {
            "id": "ai_4NsJqZTB",
            "name": "Ring",
            "app_id": null,
            "value": 0.002340084
          }
        ]
      }
    }
  ]
}
SHOW FULL CODE
COMPONENTDESCRIPTION
modelThe model you are using to make predictions on your inputs with. Includes the id, name, created_at date, output info, and information on the model version.
inputThe image data that you passed through the model to make predictions. Includes id and the image data.
dataThe data sent back with the reponse; usually includes the detected concepts and corresponding probability values. (If the model's output type is not concepts, you'll see different output responses here.)

Info

MODEL NAME

Apparel

OWNER

Clarifai

MODEL ID

e0be3b9d6a454f0493ac3a30784001ff

UPDATED AT

Dec 20, 2016

CONCEPTS

Blouse, Bracelet, Casual Dress, Fleece Jacket, Loafers, Pant Suit and more

ALPHA

Please note that this model is currently in ALPHA testing and may change at any time

Get Started for Free with Apparel Model

Start building amazing stuff — no credit card required.

Get Your Free API Key