Skip to main content

Clarifai Models

Pre-trained, pre-optimized, and ready to use right out of the box

Our model library is constantly growing and developing. To learn more about available models, you can browse Clarifai Community, view available models in Portal's Model Mode (Just navigate to Model Mode in Portal, click "Create Workflow" and select "clarifai" under "USER". You will see a list of all available pre-built models for your app), or use the "Get" commands outlined in the API Guide.

Clarifai Models

Clarifai Models are "Trainable" machine learning models that have been developed in-house and have been thoroughly tested.

Clarifai Models are ready to make predictions right our of the box. For example, our "General" model recognizes recognizes over 11,000 different concepts including objects, themes, moods, and more, with outputs in 23 different languages. Our "Food" model recognizes more than 1,000 food items in images down to the ingredient level. Before you train your own model, we suggest trying these out to see if they fit your needs.

Operator Models

Operator models are "Non-Trainable", or "fixed function" models that help you connect, route and control the inputs and outputs that you send through your workflows. Operator models are critical building blocks for creating more advanced workflows.

Here are a selection of model types to give you an idea of what is possible. Visit Model Mode in Portal to see a complete list of the models available to you.

  • Concept Thresholder - Use a threshold and an operator (>, >=, =, <=, or <) to route the outputs of classification models in your workflows. For example, if you use the " > " threshold type and set the threshold value to 0.9, only concepts with that have been predicted with a confidence score greater than 0.9 will be sent as outputs from the concept thresholder, and other concepts will be ignored. Concept Thresholders can be networked and combined to enable complex routing behaviors.
  • Concept Synonym Mapper - Map the input concepts to output concepts by following synonym concept relations in the knowledge graph of your app.
  • Annotation Writer - Write the input data to the database in the form of an annotation with a specified status as if a specific user created the annotation.
  • Image Cropper - Crop the input image according to each input region that is present in the input. When used in a workflow this model can look back along the graph of the workflow to find the input image if the preceding model does not output an image itself so that you can do image -> detector -> cropper type of workflow easily.
  • Random Sampler - Randomly sample inputs allowed to pass through as outputs. This is done with the conditional keep_fraction > rand() where keep_fraction is the average fraction of inputs that will be allowed through.
  • Cross App Visual Searcher - Perform a visual search in another app that you have configured in the model configuration and returns the matched search hits as concept.
  • KNN Classifier Model - Use k nearest neighbor search and plurality voting amongst the nearest neighbors to classify new instances. This is recommended when you only have a small dataset like one image per concept.