Open zhaoqi571436204 opened 1 week ago
same Error,Have you solved this problem?
同样的错误,你解决这个问题了吗?
Nope.
I'm also having the same problem, the model file is actually in the clip vision directory, but it still says it can't be found. By modifying the ipadapter_flux.py line 111 of this file, you can replace the model path with your own. but there are still other errors(issue 10), and the workflow still doesn't work.
Modify "clip_vision" key in ipadapter_flux.py line 112 works, e.g.,
I'm also having the same problem, the model file is actually in the clip vision directory, but it still says it can't be found. By modifying the ipadapter_flux.py line 111 of this file, you can replace the model path with your own. but there are still other errors(issue 10), and the workflow still doesn't work.
line 112, made a mistake
修改 ipadapter_flux.py 行 112 中的 “clip_vision” 键,例如:
How does that work?
修改 ipadapter_flux.py 行 112 中的 “clip_vision” 键,例如:
How does that work?
add your path of "google/siglip-so400m-patch14-384" to "clip_vision" key in ipadapter_flux.py line 112, and switch to it in your workflow,
This module reads the Hugging Face cache directory's path, not the clip_vision
folder. The clip_vision
folder in the original ComfyUI directory does not contain folders for Hugging Face Transformers but rather a single file. If you have an additional Hugging Face cache directory, you can modify the Hugging Face cache directory configuration. The specific method is as follows:
You can set the HF_HOME
environment variable to specify a new cache directory.
For Linux/Mac, run the following command in the terminal:
export HF_HOME=/path/to/your/cache
For Windows, use the following command:
set HF_HOME=C:\path\to\your\cache
Hugging Face uses a global configuration file to manage settings such as the cache directory:
Open or create the global configuration file at the following paths:
~/.cache/huggingface/hub/config.json
%USERPROFILE%\.cache\huggingface\hub\config.json
Add or update the following entry:
{
"cache_dir": "/path/to/your/cache"
}
这个module读取的是huggingface缓存目录的地址,而不是clip_vision文件夹,comfyui原始目录的clip_vision文件夹内放置的不是供huggingface transformers访问的文件夹而是单个文件。如果您有一个额外的huggingface缓存目录,可以修改 Hugging Face 的缓存目录配置。具体方法如下:
您可以通过设置 HF_HOME
环境变量来指定新的缓存目录。
对于 Linux/Mac,在终端中运行以下命令:
export HF_HOME=/path/to/your/cache
对于 Windows,使用以下命令:
set HF_HOME=C:\path\to\your\cache
Hugging Face 使用全局配置文件来管理缓存目录等设置:
打开或创建全局配置文件,路径如下:
~/.cache/huggingface/hub/config.json
%USERPROFILE%\.cache\huggingface\hub\config.json
添加或更新以下内容:
{
"cache_dir": "/path/to/your/cache"
}
修改 ipadapter_flux.py 行 112 中的 “clip_vision” 键,例如:
How does that work?
add your path of "google/siglip-so400m-patch14-384" to "clip_vision" key in ipadapter_flux.py line 112, and switch to it in your workflow,
This doesn't work for me, how should I modify it? https://github.com/Shakker-Labs/ComfyUI-IPAdapter-Flux/issues/15
ComfyUI Error Report
Error Details
Exception Message: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like google/siglip-so400m-patch14-384 is not the path to a directory containing a file named config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
Stack Trace