Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -878,7 +878,7 @@ def render(dataset: datasets.Dataset, example: Dict[str, Any], max_size: float=5
|
|
878 |
for index in range(example["length"]):
|
879 |
pil_image = example["image"][index]
|
880 |
image = skia.Image.frombytes(
|
881 |
-
pil_image.convert(
|
882 |
pil_image.size,
|
883 |
skia.kRGBA_8888_ColorType)
|
884 |
left = example["left"][index] * canvas_width
|
|
|
878 |
for index in range(example["length"]):
|
879 |
pil_image = example["image"][index]
|
880 |
image = skia.Image.frombytes(
|
881 |
+
pil_image.convert("RGBA").tobytes(),
|
882 |
pil_image.size,
|
883 |
skia.kRGBA_8888_ColorType)
|
884 |
left = example["left"][index] * canvas_width
|