-
Notifications
You must be signed in to change notification settings - Fork 9
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
Misc SimilarityIndex.add_to_index()
issues
#169
Comments
Hey @brimoor here are some cases of what I mentioned in Slack |
@allenleetc thanks for the examples 👍 Some initial reactions:
|
update: what I said about |
@brimoor For |
Minor issues for similarity indexes when
add_to_index()
is called with overlapping/existing sample_ids.I believe the issues are in
fob.internal.core.utils.add_ids()
so may extend to all backends. That said I am testing withmongodb
backendDataset Prep (currently must run over direct connection to MongoDB Atlas for
mongodb
backendIssue 0, "last" sample_id to be added already exists
Apparent issue here, maybe use
max(jj)
rather than last element ofjj
fiftyone-brain/fiftyone/brain/internal/core/utils.py
Line 484 in 62da0a6
For reference, docstring from
SimilarityIndex.add_to_index
Issue 1, overwrite=False, allow_existing=False. Expect error here
Issue 2, overwrite=False, warn_existing=True. Expect warning here
Issue 3, overwrite=True, allow_existing=False. Don't expect error here as overwrite=True
The text was updated successfully, but these errors were encountered: