-
Notifications
You must be signed in to change notification settings - Fork 509
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
[BUG] Media lost after view.save() #4232
Comments
I tried to reproduce but this works fine: import fiftyone as fo
import fiftyone.zoo as foz
from fiftyone import ViewField as F
dataset = foz.load_zoo_dataset("quickstart")
session = fo.launch_app(dataset)
print(len(dataset)) # 200
print(dataset.count("ground_truth.detections")) # 1232
view = dataset.match(F("ground_truth.detections").length())
print(len(view)) # 199
view2 = view.map_labels("ground_truth", {"carrot": "CARROT"})
view2.save()
## ensure data is all still there
print(len(view)) # 199
print(len(dataset)) # 200
print(dataset.count("ground_truth.detections")) # 1232
print(dataset.count_values("ground_truth.detections.label")["CARROT"]) # 47
## refresh app, everything looks fine |
Yeah same for me with the quickstart dataset... More info on what I notice on media NOT showing:
On media showing:
Looks like metadata was ommitted when I saved the view? dataset.compute_metadata(overwrite=True, skip_failures=False, warn_failures=True, progress=True) Now every sample has metadata, but no change. I came up with the glory idea to open the app in the browser. In the console I got view = session.dataset.match(F("ground_truth.detections").length() == 0)
for sample in view:
sample["ground_truth"] # Returns <Detections: {'detections': []}> What should I set them to? |
Fixed by #4345 |
Describe the problem
Media does not show anymore in the App after I remaped labels in a python session. After hitting view.save() media was gone!?
Is there any cache I should clear?
Code to reproduce issue
This happend for two independend datasets:
Looks like every sample within the view is okay?
System information
The text was updated successfully, but these errors were encountered: