image = load_image("https://huggingface.co/datasets/diffusers/docs-images/resolve/main/t2i-adapter/color_ref.png")  Then we can create our color palette by simply resizing it to 8 by 8 pixels and then scaling it back to original size.   Copied from PIL import Image