kyamagu commited on
Commit
aeda328
1 Parent(s): e191d83

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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('RGBA').tobytes(),
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