Open MaggieLxj opened 9 months ago
Try to use this environment variable TRANSFORMERS_OFFLINE=1
Excuse me, please tell me where to put this environment variable TRANSFORMERS_OFFLINE=1. Thanks very much!
Write set TRANSFORMERS_OFFLINE=1
in your bat file if Windows, export TRANSFORMERS_OFFLINE=1
in .sh file if Linux. I had a problem when my Internet was disabled, and segment anything froze for about 10 seconds
can refer to this pr : https://github.com/IDEA-Research/Grounded-Segment-Anything/pull/517 which has bean merged
Is there an existing issue for this?
Have you updated WebUI and this extension to the latest version?
Do you understand that you should read the 1st item of https://github.com/continue-revolution/sd-webui-segment-anything#faq if you cannot install GroundingDINO?
Do you understand that you should use the latest ControlNet extension and enable external control if you want SAM extension to control ControlNet?
Do you understand that you should read the 2nd item of https://github.com/continue-revolution/sd-webui-segment-anything#faq if you observe problems like AttributeError bool object has no attribute enabled and TypeError bool object is not subscriptable?
What happened?
webui启动要求不能开代理,但是groundingdino插件启动会自动下载models--bert-base-uncased,而这个下载必须通过代理进行,所以有没有办法能直接在代码里屏蔽掉自动下载,而使用手动下载的bert-base-uncased模型?
Steps to reproduce the problem
直接使用groundingdino插件功能
What should have happened?
屏蔽自动下载,使用已下载好的bert-base-uncased模型
Commit where the problem happens
webui: 正常运行 extension: groundingdino出错
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
Console logs
Additional information
查看过关于groundingdino问题的多个issue回复,已经尝试过把bert-base-uncased放在/home/lxj/.cache/huggingface/hub/models--bert-base-uncased下,以及/home/lxj/Documents/code/ScenarioTool/stable-diffusion-webui/extensions/sd-webui-segment-anything/local_groundingdino/models/GroundingDINO/bert-base-uncased,以及/home/lxj/Documents/code/ScenarioTool/stable-diffusion-webui/venv/lib/python3.10/site-packages/groundingdino/util/bert-base-uncased,三种方式均不能调用现成的模型