in src/open-r1-multimodal/local_scripts/prepare_hf_data.py [0:0]
def load_image_from_path(image_path):
try:
img = Image.open(image_path)
return img
except Exception as e:
print(f"Error loading image {image_path}: {str(e)}")
return None