Image_comparison errors on calling compare

When I load images into the image_comparison, I get the following error in the logs:

Uncaught app exception

Traceback (most recent call last):

  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 564, in _run_script

    exec(code, module.__dict__)

  File "/app/streamlit_img_diff/pages/", line 31, in <module>

    img_comparison(before, after)

  File "/app/streamlit_img_diff/pages/", line 22, in img_comparison


  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit_image_comparison/", line 79, in image_comparison

    img1_pillow =

AttributeError: module 'sahi' has no attribute 'utils'

This is the app that I am using:

I encountered the same error. Specifying sahi==0.10.8 in requirements.txt worked for me.
(It seems there is an issue with sahi release 0.11)