GithubHelp home page GithubHelp logo

jacobmarks / concept-space-traversal-plugin Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 192 KB

Traverse the space of concepts with a multi-modal similarity index in FiftyOne

Python 20.75% TypeScript 69.79% JavaScript 9.47%
clip-model computer-vision embeddings fiftyone javascript mui multimodal plugin python react

concept-space-traversal-plugin's Introduction

Concept Space Traversal Plugin

concept_traversal

This plugin allows you to "traverse" the concept space of a similarity index by adding text prompts (with configurable strength) to a base image.

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="clip-vit-base32-torch",
    metric="cosine",
    )

Watch On Youtube

Video Thumbnail

Installation

fiftyone plugins download https://github.com/jacobmarks/concept-space-traversal-plugin

Refer to the main README for more information about managing downloaded plugins and developing plugins locally.

Operators

open_traversal_panel

  • Opens the concept space traversal panel on click
  • Only activated when the dataset has a similarity index

traverser

  • Runs the Traverser on the dataset

get_sample_url

  • Returns the resource URL of the media file associated with a sample, from the sample's ID.

๐Ÿ’ช Development

This plugin was a joint creation between myself and Ibrahim Manjra. Couldn't have done it without his JavaScript wizardry!

concept-space-traversal-plugin's People

Contributors

allenleetc avatar imanjra avatar jacobmarks avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

allenleetc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.