SceneDesigner
Collection
2 items
•
Updated
•
1
Error code: TooBigContentError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Each data sample contains 4 attributes:
source: Source dataset name (e.g., "cityscapes")prompt: Text description or promptimage: Image data (stored as binary)map: CNOCS Map (stored as binary in EXR format)Due to license restrictions, images from the Cityscapes source cannot be redistributed directly.
image field contains only the relative path within leftImg8bitimage contains the actual binary image dataThe map field stores the CNOCS Map from the paper in EXR format as binary data.
from datasets import load_dataset
dataset = load_dataset("FudanCVL/ObjectPose9D", streaming=True)
for i, item in enumerate(dataset["train"]):
if item["source"] == "cityscapes":
# For cityscapes: image field is a path string
image_path = item["image"].decode("utf-8")
else:
with open(f"{i}_{item['source']}.jpg", "wb") as f:
f.write(item["image"])
with open(f"{i}_{item['source']}.exr", "wb") as f:
f.write(item["map"])
import numpy as np
from openexr_numpy import imread
from PIL import Image
# Read EXR map
cnocs_map = imread("map.exr")
cnocs_map_uint8 = (cnocs_map * 255).clip(0, 255).astype(np.uint8)
img = Image.fromarray(cnocs_map_uint8)
img.save("map.png")