COMFYUI换脸ReActor报错Value not in list: face_restore_model: ‘codeformer.pth‘解决

Value not in list: face_restore_model: 'codeformer.pth' not in ['none', 'GFPGANv1.3.pth']

搜了下没找到答案,最后看github官方的指引:

You can download models here: https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models
Put them into the ComfyUI\models\facerestore_models

嗯,原来是facerestore_models找了这个模型,下载的地址搜一下就可以找到:

https://github.com/sczhou/CodeFormer/releases/download/v0.1.0/codeformer.pth

把它放入facerestore_models重启就好了

我是win系统,在是用sd1.5comfyui的时候遇到reactor节点报错报错内容是Could not load model D:\comfyui\ComfyUI-aki\ComfyUI-aki-v1.6\ComfyUI\models\nsfw_detector\vit-base-nsfw-detector with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForImageClassification'>,). See the original errors: while loading with AutoModelForImageClassification, an error is thrown: Traceback (most recent call last): File "D:\comfyui\ComfyUI-aki\ComfyUI-aki-v1.6\python\Lib\site-packages\transformers\pipelines\base.py", line 289, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI-aki\ComfyUI-aki-v1.6\python\Lib\site-packages\transformers\models\auto\auto_factory.py", line 564, in from_pretrained return model_class.from_pretrained( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\comfyui\ComfyUI-aki\ComfyUI-aki-v1.6\python\Lib\site-packages\transformers\modeling_utils.py", line 3730, in from_pretrained raise EnvironmentError( OSError: Error no file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt.index or flax_model.msgpack found in directory D:\comfyui\ComfyUI-aki\ComfyUI-aki-v1.6\ComfyUI\models\nsfw_detector\vit-base-nsfw-detector.现在我需要你告诉怎么解决这个问题,让我的工作流能顺利运行。步骤需要非常的详细,包括怎么调用命令指示符,怎么检查路径,查看模型有没有确实或者文件模型存放的路径对不对,反正就是要非常详细,怎么查看怎么变更路径。因为我对电脑不是太懂
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

FoxMale007

文章非V全文可读,觉得好请打赏

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值