fix image convert to rgb

#15
by nvm472001 - opened
Files changed (1) hide show
  1. cvdataset-layoutlmv3.py +1 -1
cvdataset-layoutlmv3.py CHANGED
@@ -19,7 +19,7 @@ https://arxiv.org/abs/2103.14470
19
  """
20
 
21
  def load_image(image_path):
22
- image = Image.open(image_path)
23
  w, h = image.size
24
  return image, (w,h)
25
 
 
19
  """
20
 
21
  def load_image(image_path):
22
+ image = Image.open(image_path).convert("RGB")
23
  w, h = image.size
24
  return image, (w,h)
25