I'm creating a grouped dataset containing images and videos with wide aspects. I noticed that for grouped datasets, the aspect in the tiling view is fixed to be square. Whereas in standard datasets, the native image aspect is used for each tile. Ideally, I would like to see the native aspect used by default for all images and groups.
Thanks in advance! Fiftyone is a great tool btw I love it.
Code to reproduce issue
from pathlib import Path
import fiftyone as fo
import numpy as np
from PIL import Image
dataset = fo.Dataset("aspect_test", persistent=True, overwrite=True)
# Remove group to see correct images
dataset.add_group_field("group", default="img")
img_dir = Path("aspect_test_images")
img_dir.mkdir(exist_ok=True)
samples = []
for ii in range(10):
group = fo.Group()
img = Image.fromarray((np.ones((50, 200, 3)) * [255, 0, 0]).astype("uint8"))
img_path = img_dir / f"img_{ii:02d}.png"
img.save(img_path)
sample = fo.Sample(filepath=img_path, group=group.element("img"))
samples.append(sample)
dataset.add_samples(samples)
Other info/logs
Example with group:
Example without group:
What areas of FiftyOne does this bug affect?
[x] App: FiftyOne application issue
[ ] Core: Core Python library issue
[ ] Server: FiftyOne server issue
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?
[ ] Yes. I can contribute a fix for this bug independently
[x] Yes. I would be willing to contribute a fix for this bug with guidance from the FiftyOne community
[ ] No. I cannot contribute a bug fix at this time
System information
Describe the problem
I'm creating a grouped dataset containing images and videos with wide aspects. I noticed that for grouped datasets, the aspect in the tiling view is fixed to be square. Whereas in standard datasets, the native image aspect is used for each tile. Ideally, I would like to see the native aspect used by default for all images and groups.
Thanks in advance! Fiftyone is a great tool btw I love it.
Code to reproduce issue
Other info/logs
Example with group:
Example without group:
What areas of FiftyOne does this bug affect?
App
: FiftyOne application issueCore
: Core Python library issueServer
: FiftyOne server issueWillingness 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?