cswry / SeeSR

[CVPR2024] SeeSR: Towards Semantics-Aware Real-World Image Super-Resolution
Apache License 2.0
436 stars 29 forks source link

feature_extractor is miss in sd-turbo #27

Open WenmuZhou opened 8 months ago

WenmuZhou commented 8 months ago

I encountered the following problems when running the webui of sd-turbo:

error : OSError: Incorrect path_or_model_id: 'preset/models/models--stabilityai--sd-turbo/snapshots/1681ed09e0cff58eeb41e878a49893228b78b94c/feature_extractor'. Please provide either the path to a local folder or the repo_id of a model on the Hub.

The screenshot of the sd-turbo file on huggingface is as follows, there is no feature_extractor folder image

Luciennnnnnn commented 8 months ago

Since feature extractor is used for NSFW checker, we can ignore it by passing feature_extractor=None to StableDiffusionControlNetPipeline

AIisCool commented 5 months ago

Since feature extractor is used for NSFW checker, we can ignore it by passing feature_extractor=None to StableDiffusionControlNetPipeline

Modified it when I too got this error, but it isn't working:

OSError: preset/models/sd-turbo/feature_extractor does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/preset/models/sd-turbo/feature_extractor/None' for available files.

happy-liuzhixuan commented 2 months ago

由于特征提取器用于 NSFW 检查器,我们可以通过传递给feature_extractor=None``StableDiffusionControlNetPipeline

当我也收到这个错误时修改了它,但它不起作用:

OSError: preset/models/sd-turbo/feature_extractor does not appear to have a file named preprocessor_config.json. Checkout 'https://huggingface.co/preset/models/sd-turbo/feature_extractor/None' for available files.

请问您解决了这个问题吗,我也遇到这个问题,不知如何解决

lkraider commented 1 month ago

I used the one from SD-2-base:

!ln -s /content/SeeSR/preset/models/stable-diffusion-2-base/feature_extractor /content/SeeSR/preset/models/sd-turbo