This plugin allows you to "interpolate" between two text prompts and see the results in the UI.
Given a left_prompt
, a right_prompt
, and an interpolation strength alpha
,
the plugin will embed the left and right prompts into
Note: This plugin requires a similarity index that supports prompts (i.e. embeds text and images) to be present on the dataset. You can create one with:
import fiftyone as fo
import fiftyone.brain as fob
dataset = fo.load_dataset("my_dataset")
fob.compute_similarity(
dataset,
brain_key="my_brain_key",
model_name="clip-vit-base32-torch",
metric="cosine",
)
fiftyone plugins download https://github.com/jacobmarks/concept-interpolation
Refer to the main README for more information about managing downloaded plugins and developing plugins locally.
- Opens the interpolation panel on click
- Only activated when the dataset has a similarity index
- Runs the interpolation