Hi,
I'm trying to implement building footprint detection using Deep Learning as shown in this example Extracting Building Footprints From Drone Data | ArcGIS for Developers with my own data. But I'm getting the following error when I run the prepare_data() function.

The command I ran was

The error persists even after reinstalling pillow 6.2.1.
Any ideas on how to resolve it? I'm using ArcGIS Pro 2.5.0.
Thanks in advance.