Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding update_index() method for similarity indexes #205

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

brimoor
Copy link
Contributor

@brimoor brimoor commented Nov 5, 2024

Marking as a draft to ponder a bit more whether it makes sense to provide builtin methods to update other brain runs like compute_uniqueness(), compute_visualization(), etc.

import fiftyone as fo
import fiftyone.zoo as foz
import fiftyone.brain as fob

dataset = foz.load_zoo_dataset("quickstart")

dataset2 = fo.Dataset()
dataset2.add_collection(dataset[:100].select_fields())

index = fob.compute_similarity(dataset2)

dataset2.add_collection(dataset[100:].select_fields())

index.update_index()

# No-op
index.update_index()

@brimoor brimoor force-pushed the update-index branch 2 times, most recently from 8ae8b6b to 638e4ea Compare December 4, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant