Skip to content

Commit

Permalink
Fix: convert images to RGB
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Oct 29, 2024
1 parent 1914f7d commit 3ceab24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datadreamer/pipelines/generate_dataset_from_scratch.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,9 @@ def read_image_batch(image_batch, batch_num, batch_size):
batch_image_paths.append(image_path)

else:
images = [Image.open(image_path) for image_path in image_batch]
images = [
Image.open(image_path).convert("RGB") for image_path in image_batch
]
batch_image_paths = image_batch
return images, batch_image_paths

Expand Down

0 comments on commit 3ceab24

Please sign in to comment.