guytakeiteasy
guytakeiteasy
> Try using pycocotools-window instead of pycocotools. refer to [cocodataset/cocoapi#415](https://github.com/cocodataset/cocoapi/issues/415) thanks,I tried but get a same error :-(
我解决了,我在秋叶一键包的启动命令提示符功能中手动安装的 pycocotools 和 groundingdino,也就是将这两个包安装到秋叶的py310环境中,现在已经可以正常使用了:-) 
具体来说,就是先用“pip3 install pycocotools” 或 “python setup.py install” 命令把pycocotools 和 groundingdino这两个模块先给安装到秋叶的py310(我的是python3.10.8)环境中去,然后sd-webui-segment-anything插件在第一次使用关键词分割功能的时候就会自动的调用到了。
如果安装的CUDA tooltik是v11.8版本的,那么下面这个地方也要安装一下 
> “python setup.py install”命令显示下面这个 > > D:\sd-webui-aki\sd-webui-aki-v4>python setup.py install python: can't open file 'D:\sd-webui-aki\sd-webui-aki-v4\setup.py': [Errno 2] No such file or directory 需要使用git下载(clone)groundingdino代码(zip包)并解压,然后使用cd命令进入到 groundingdino代码目录下面执行
> “pip3 install pycocotools”命令出现了很多安装警告 > > D:\sd-webui-aki\sd-webui-aki-v4>pip3 install pycocotools Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html Collecting pycocotools Using cached https://pypi.doubanio.com/packages/ef/c6/90220be3b39fbc4cbd203775ca47dd8dc97fae06fbd2b500637395621b7c/pycocotools-2.0.6.tar.gz (24 kB) Installing build dependencies ......
> > pip3 install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn > > D:\sd-webui-aki\sd-webui-aki-v4\extensions\sd-webui-segment-anything\GroundingDINO-main>pip3 install pycocotools -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html Requirement already...
> 大佬,这个办法是不是要有代码基础才能操作?纯代码小白可以办到吗。 “需要使用git下载(clone)groundingdino代码(zip包)并解压,然后使用cd命令进入到 groundingdino代码目录下面执行” 这一步,我去GIT搜,结果搜出一堆groundingdino的代码,是复制粘贴到“启动命令提示符”里面再启动就行吗 这个不需要代码基础,点击download下载解压即可,cd是windows命令提示符用来打开相应的文件路径的,这个百度一下吧,不是很难,这个意思是在命令提示符下进入到你下载的groundingdino代码文件夹内,执行python setup install编译安装命令,来给秋叶整合包的phyon安装上这个软件,下载代码位置参考下图的网址:
> torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 根据提示,安装groundingdino的时候需要先编译再安装,编译的时候需要有visual studio2022的C++编译工具,可以下载安装,安装方法如下所示: 
> > torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。 > > 根据提示,安装groundingdino的时候需要先编译再安装,编译的时候需要有visual studio2022的C++编译工具,可以下载安装,安装方法如下所示:  另外,检查一下你是否安装CUDA tooktik 11.8,并且配置了环境变量  