Problem loading pretrained model that exists

Alpha-Romeo
Fri, 03 Feb 2023 19:59:12 +0000

Hi,

Im trying to load the image encoder from this repository

huggingface.co

Fantasy-Studio/Paint-by-Example at main

We’re on a journey to advance and democratize artificial intelligence through open source and open science.

Using this line of code:

image_encoder = PaintByExampleImageEncoder.from_pretrained(“Fantasy-Studio/Paint-by-Example”, subfolder=“image_encoder”)

However I get the error:
OSError: Fantasy-Studio/Paint-by-Example does not appear to have a file named config.json.

Even though clearly there is one there in the above link. What is wrong?