Load an image and use the [opencv-python](https://github.com/opencv/opencv-python) library to extract the canny image:  
```py
from diffusers.utils import load_image, make_image_grid
from PIL import Image
import cv2
import numpy as np