-
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
Unable to view two group slices with sort&filtering applied to active slice [BUG] #4181
Comments
Hi @sergiev. Thanks for the report. In your first sceenshot I believe there is a |
Hi @benjaminpkane |
@benjaminpkane well the view is good now at every aspect... except essential one - the auxiliary images are not being displayed: d2 = fo.Dataset(NAME + "_orientir", overwrite=True)
d2.add_group_field("group", default="tile")
d2_samples = []
for sample in tqdm(dataset[:50], desc="adding orientir"):
group = fo.Group()
new_sample = sample.copy()
new_sample["group"]=group.element("tile")
d2_samples.append(new_sample)
orientir_path = find_orientir(sample)
if orientir_path:
orientir_sample = fo.Sample(filepath=orientir_path, group=group.element("orientir"))
d2_samples.append(orientir_sample)
d2.add_samples(d2_samples)
c2 = F("eval").switch(mapping={F() == "fp": F("confidence")}, default=0)
hcv2 = d2.filter_labels("predictions", F("confidence") > CONF_THD, only_matches=False)
_ = d2.select_group_slices("tile").evaluate_detections("predictions", gt_field="ground_truth", eval_key="eval", iou=0.1)
v2 = hcv2.set_field("predictions.confp", F("detections").map(c2).max())
session = fo.launch_app(dataset=d2, color_scheme=COLORS, port=1703, auto=False)
session.view = v2.sort_by(("predictions.confp"), reverse=True) I've checked that the |
A couple of observations. If I add |
Hi @sergiev. Can you share any browser errors for the blank images? Or a dataset that reproduces the issue? The sample could be malformed. Regarding import fiftyone as fo
import fiftyone.zoo as foz
F = fo.ViewField
dataset = foz.load_zoo_dataset("quickstart-groups")
view = dataset.filter_labels("ground_truth", F("label") == "Car")
fo.pprint(view._pipeline()) Out
With selection = view.select_group_slices("left")
fo.pprint(selection._pipeline()) Out (note the
|
Checked at latest stable versions of Chrome & Edge. Here's what i've noticed: Also, in class names of canvases that are not being rendered in desired manner appears word
Here's 10 pairs from my dataset, none of them displayed properly, but 20 corresponding images has been saved via
Here's the couple of clarifications about the view where screenshots above were made |
What I suppose now is that I should address not bare |
Hi @benjaminpkane @brimoor @ehofesmann! I really hope to get a hint on it. |
Hiiiiiii @benjaminpkane @brimoor @ehofesmann! I'm still really hoping to get a hint on it. |
@benjaminpkane any news on it? |
Describe the problem
Our current use case of 51 is to look for the samples with FPs of most confidence.
I have a dataset view for it, code of view below:
Recently it become clear that each sample should have auxiliary image for better navigation. I've added it, but in this state I have unpleasant dichotomy:
Code to reproduce issue
Second dataset
d2
is simplydataset
samples + corresponding auxiliary samples. The exact code is here:Here's the code I expect to do the desired filtering, evaluation & sorting WITH access to aux image, but it gives nothing more than at first screenshot in this issue:
System information
Other info/logs
Include any logs or source code that would be helpful to diagnose the problem.
If including tracebacks, please include the full traceback. Large logs and
files should be attached. Please do not use screenshots for sharing text. Code
snippets should be used instead when providing tracebacks, logs, etc.
Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?
from the FiftyOne community
The text was updated successfully, but these errors were encountered: