草庐IT

CUDA_CODE_COMPILE

全部标签

部署stable diffusion 错误torch.cuda.OutOfMemoryError: CUDA out of memory.

以来安装完毕,开始执行web_ui.bat错误截图: 猜测原因:GPU用错了webUI.py加一行代码os.environ["CUDA_VISIBLE_DEVICES"]="1"在此启动web_ui.bat,成功打开网页页面

git push错误:You are not allowed to force push code to a protected branch on this project

现象    本地使用 gitpush--forceorigin命令强制推送时,出现“Youarenotallowedtoforcepushcodetoaprotectedbranchonthisproject”错误,意为该分支为受保护的,不允许这类操作,可以通过git管理后台关闭该项目分支的保护状态处理。设置使用管理员账号进入git中的项目设计,setting>repository>protectedbranches>unprotect关闭保护。 

sentinel整合nacos鉴权403问题(Nacos get changed dataId error, code: 403)

sentinel整合nacos鉴权403问题(NacosgetchangeddataIderror,code:403)先说结论问题分析过程先说结论由于spring-cloud-starter-alibaba-sentinel-2.2.1.RELEASE所依赖的spring-cloud-alibaba-sentinel-datasource-2.2.1.RELEASE不支持nacos鉴权,需要升级spring-cloud-starter-alibaba-sentinel版本或升级spring-cloud-alibaba-sentinel-datasource至2.2.2.RELEASE或以上版本

husky - commit-msg hook exited with code 1 (error)

git提交遇到husky-commit-msghookexitedwithcode1(error)的问题 解决方法:在冒号后加空格=》feat冒号空格或gitcommit-m"feat:xxxx",然后再pull、push即可。 

切换cuda版本的两种方式

看正文之前,最好先搞懂什么是环境变量,PATH环境变量的作用,如何定义或修改环境变量,软链接的概念,什么是.bashrc文件,如何创建软链接,如何删除软链接。参考:B站阿发你好的Ubuntu教程名词解释:Linux系统中的软链接等价于Windows系统中的快捷方式有两种切换cuda版本的做法,但两种方式是的本质是相同的,都是将cuda库的安装目录添加到PATH环境变量和LD_LIBRARY_PATH环境变量中。方式1不创建软链接,而是修改.bashrc中的环境变量指向;(如视频中讲的那样)如图主目录安装好了5个版本的cuda,.bashrc文件中对应有上图5个版本的环境变量的定义,当前指向的是

go - 无法在 Visual Studio Code 中安装 Go 扩展

当我尝试在我的VisualStudioCode中安装GoExtension时,我收到如下错误消息。我在这里遗漏了什么吗?gocodegopkgsgo-outlinego-symbolsgurugorenamegodefgoreturnsgolintdlvInstallinggithub.com/nsf/gocodeFAILEDInstallinggithub.com/uudashr/gopkgs/cmd/gopkgsFAILEDInstallinggithub.com/ramya-rao-a/go-outlineFAILEDInstallinggithub.com/acroca/go-

go - 无法在 Visual Studio Code 中安装 Go 扩展

当我尝试在我的VisualStudioCode中安装GoExtension时,我收到如下错误消息。我在这里遗漏了什么吗?gocodegopkgsgo-outlinego-symbolsgurugorenamegodefgoreturnsgolintdlvInstallinggithub.com/nsf/gocodeFAILEDInstallinggithub.com/uudashr/gopkgs/cmd/gopkgsFAILEDInstallinggithub.com/ramya-rao-a/go-outlineFAILEDInstallinggithub.com/acroca/go-

go - 在 VS Code 中找不到销售包

使用gogo1.10.2darwin/amd64和glide0.13.1。依赖项位于vendor目录中。从命令行构建没有错误。在VSCode中查看代码时,显示如下错误:Cannotfindpackage"github.com/xxx/go-utility/log"inanyof:/usr/local/Cellar/go/1.10.2/libexec/src/github.com/xxx/go-utility/log(from$GOROOT)/Users/martin/go/src/github.com/xxx/go-utility/log(from$GOPATH)终端和VS控制台都报告

go - 在 VS Code 中找不到销售包

使用gogo1.10.2darwin/amd64和glide0.13.1。依赖项位于vendor目录中。从命令行构建没有错误。在VSCode中查看代码时,显示如下错误:Cannotfindpackage"github.com/xxx/go-utility/log"inanyof:/usr/local/Cellar/go/1.10.2/libexec/src/github.com/xxx/go-utility/log(from$GOROOT)/Users/martin/go/src/github.com/xxx/go-utility/log(from$GOPATH)终端和VS控制台都报告

post请求报错 net::ERR_CONNECTION_REFUSED AxiosError code: “ERR_NETWORK“

post请求接口报错net::ERR_CONNECTION_REFUSED,AxiosError中code:"ERR_NETWORK"。百度了有说跨域有说请求格式不对,我的跨域已经在nodejs中设置了cors,还是不知道什么原因查看network发现请求了两次接口,百度说strict-origin-when-cross-origin跨域报错,按照说的操作还是不行 最后看是请求头不一致,API接口的里的Content-Type:application/x-www-form-urlencoded,前端请求头显示Content-Type:application/json前端请求代码传参应该用 UR