Skip to content

Latest commit

 

History

History

transformers

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Hugging Face Transformers Plugin

A plugin that allows you to apply transformer models from the Hugging Face Hub to your FiftyOne datasets.

Installation

First, install the latest version of FiftyOne and Hugging Face libraries:

pip install -U fiftyone transformers huggingface_hub

Then, download the plugin:

fiftyone plugins download https://github.com/voxel51/fiftyone-huggingface-plugins \
    --plugin-names @voxel51/transformers

Usage

  1. Launch the App:
import fiftyone as fo
import fiftyone.zoo as foz

dataset = foz.load_zoo_dataset("quickstart")
session = fo.launch_app(dataset)
  1. Press ` or click the Browse operations action to open the Operators list

  2. Select apply_transformers_model

Select the task type from the task dropdown and the model from the model dropdown. You can choose to apply the model to the entire dataset, your current view, or currently selected samples.