![](https://img-blog.csdnimg.cn/7dce2221b2fc4582901ea5f06aaf0d60.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
踩坑笔记
各种框架、语言使用的踩坑笔记,包括代码小贴士
duoyasong5907
这个作者很懒,什么都没留下…
展开
-
BF16与FP16的区别
参考两者差异图示如下:原创 2024-01-29 14:59:01 · 2594 阅读 · 0 评论 -
huggingface 本地模型加载报错 Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_mo
【代码】huggingface 本地模型加载报错 Error no file named pytorch_model.bin, tf_model.h5, model.ckpt.index or flax_mo。转载 2024-01-29 09:51:44 · 2338 阅读 · 2 评论 -
jmeter body data内容过多时卡住 (__FileToString节约你的生命)
jmeter有个bug,当body data栏里的内容太多时(比如包含了图片base64字符串),应用会卡住,处于未响应状态下加载很久,只能关闭。像下面一样填写图片base64文件的路径,以及图片编码utf-8即可。使用这个函数可以利用jemeter自带的。原创 2024-01-23 14:35:42 · 1048 阅读 · 0 评论 -
pip install报错,缺少importlib_metadata-6.7.0
安装到网上找importlib_metadata-6.7.0的whl文件,离线安装,我是在。,将importlib_metadata相关文件夹全删了再重装whl,解决了。结果报错不变,然后参考了。原创 2023-12-14 19:48:00 · 366 阅读 · 0 评论 -
owl_vit安装步骤
owl项目的clip目录与openai的clip重名了,import时容易找不到文件。拷贝到owl项目下的clip文件夹。解决办法: 把clip项目下的。原创 2023-10-30 16:59:45 · 353 阅读 · 0 评论 -
运行huggingface Kosmos2报错 nameerror: name ‘kosmos2tokenizer‘ is not defined
判断为False,导致没有导入Kosmos2Tokenizer,因此要安装该依赖。之后就可以执行demo了。原创 2023-10-08 01:02:30 · 400 阅读 · 0 评论 -
pycharm unittest单元测试覆盖率报告 没有生成
要用本地的解释器运行单元测试,不要用远程的python解释器。原创 2023-09-26 11:38:54 · 176 阅读 · 0 评论 -
weaviate入门安装与部署
官方教程。原创 2023-08-05 15:23:57 · 2629 阅读 · 2 评论 -
pycharm打开terminal报错
Pycharm打开终端报错如何解决?估计是终端启动conda不顺利,需要重新设置路径。参考以下文章的做法即可。cmd.exe “{你的conda安装路径}\Scripts\activate.bat”给pycharm中Terminal 添加新的shell,才可以使用conda环境。原创 2023-08-05 15:14:49 · 1724 阅读 · 0 评论 -
Vue CORS
使用Vue框架报错,客户端浏览器有CORS错误,怎么解决?这里最好维持完全一致,不要去除或增添。符号,避免无法复现。原创 2023-08-05 15:09:13 · 817 阅读 · 0 评论 -
pip安装依赖失败 报错Could not find a version that satisfies the requirement 阿里云源
安装tensorflow失败,使用的阿里国内源,却提示找不到该版本的依赖。参数,阿里源要使用http协议, 还要加上。原创 2023-05-23 11:19:05 · 735 阅读 · 0 评论 -
pycharm远程debug
而是直接配置Project Interpreter.原创 2023-05-23 15:35:57 · 100 阅读 · 0 评论 -
调用CLIP demo报错 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify fail
其中以下代码可以解除requests访问https时的证书错误。, 是用ssl库全局解除验证。原创 2023-05-25 20:04:56 · 191 阅读 · 0 评论 -
cv无法执行resize并报错-215:Assertion failed
global loadsave.cpp:244 cv::findDecoder imread_('D:/users/xxxx/Documents/va/视频样例/nuscenes/samples/CAM_FRONT/n015-2018-07-24-11-22-45+0800__CAM_FRONT__1532402927612460.jpg'): can't open/read file: check file path/integrity。原因:路径中有中文,要变成英文。原创 2023-06-15 21:37:02 · 634 阅读 · 0 评论 -
docker安装失败 应用程序无法启动,因为应用程序的并行配置不正确
按照以上方案照做仍然报错。结果是下载了旧版的docker(我选择了2023.2月的4.17版本)后安装,成功了。原创 2023-07-05 17:27:17 · 605 阅读 · 0 评论 -
acclerate config配置 方向键失效
windows 方向键原创 2023-03-01 10:01:51 · 198 阅读 · 0 评论 -
GnuTLS recv error (-110): The TLS connection was non-properly terminated.
tls原创 2023-02-23 21:15:57 · 305 阅读 · 0 评论 -
python venv pip使用国内源
pip venv原创 2023-02-23 20:55:52 · 2467 阅读 · 0 评论 -
如何为wps ppt插入latex公式?
latex原创 2023-02-20 17:08:37 · 3673 阅读 · 3 评论 -
为linux服务器安装windows的图形化界面(华为云服务器)
桌面原创 2023-02-08 19:31:49 · 932 阅读 · 0 评论 -
git clone报错 unable to access
git原创 2023-02-08 15:46:27 · 569 阅读 · 0 评论 -
深度学习三件套安装依赖指南(linux)
安装pytorch原创 2023-01-29 19:37:09 · 4154 阅读 · 0 评论 -
The third-party dynamic library (cudnn64_8.dll) that Paddle depends on is not configured correctly.
paddle缺少cudnn原创 2023-01-29 16:04:41 · 6090 阅读 · 4 评论 -
fiddler抓包手机和部分app无法连接网络问题(转载)
fiddler抓包转载 2023-01-24 19:13:45 · 1266 阅读 · 0 评论 -
免费GPU攻略
GPU原创 2023-01-10 14:13:55 · 673 阅读 · 0 评论 -
运行fastai样例代码报错 AttributeError: module ‘numpy‘ has no attribute ‘int‘
fastai原创 2023-01-03 01:26:38 · 4509 阅读 · 0 评论 -
Anaconda下jupyter notebook无法关联虚拟环境的解决方法
jupyter原创 2023-01-02 05:12:38 · 440 阅读 · 0 评论 -
Geforce 错误代码 ERROR CODE:0x0003问题方法
geforce原创 2023-01-01 21:50:54 · 4060 阅读 · 1 评论 -
python 栈空间不足异常 Process finished with exit code: -1073741571
pycharm原创 2022-11-27 01:18:59 · 4425 阅读 · 0 评论 -
Error response from daemon: Get “https://registry-1.docker.io/v2/“: net/http: TLS handshake timeout
docker compose原创 2022-11-15 00:37:37 · 356 阅读 · 0 评论 -
torch timer windows AttributeError: module ‘signal‘ has no attribute ‘SIGKILL‘
pytorch原创 2022-11-14 10:43:18 · 649 阅读 · 0 评论 -
go install 程序后无法启动
go install程序原创 2022-11-12 12:06:50 · 1396 阅读 · 0 评论 -
assertionError: Torch not compiled with CUDA enabled 无法使用gpu
pytorch原创 2022-11-04 11:24:09 · 1077 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘torchvision.datasets‘; ‘torchvision‘ is not a package
torchvision无法导入原创 2022-06-20 05:29:22 · 1180 阅读 · 0 评论 -
visual studio 全局搜索 找不到文字
问题:在vs中ctrl+shift+F呼出全局搜索框,结果搜索不到文字,而用sublime却能找到解决:需要设置查找范围为选定的文件夹,而非当前项目之后就能像sublime一样找到需要的字符串了原创 2021-07-25 13:54:46 · 8586 阅读 · 0 评论 -
mac pro 打开我的电脑
command+shift+c,详见Mac keyboard shortcuts - Apple Support另外,网上在Preferences设置的办法无用。原创 2021-09-12 17:08:32 · 279 阅读 · 0 评论 -
mac pro设置环境变量
通常设置.zshrc即可,改.profile等文件可能没用。原创 2021-09-13 15:50:46 · 464 阅读 · 0 评论 -
idea安装并使用maven依赖分析插件:Maven Helper
在file->settings->plugins中搜索maven helper,并进行inistall-->apply--->ok;最后重启idea,就可以开始使用 maven helper 插件。重启idea之后,打开项目的pom文件,会多出 Dependency Analyzer 的tab页。转载 2021-09-14 22:45:31 · 2477 阅读 · 0 评论 -
java 泛型类型检查
泛型类型是无法在运行时检查的,如下代码,nsr1的Map类型转换时不会报错。import java.util.HashMap;import java.util.Map;public class CheckDemo { public static void main(String[] args) { Map<String, Object> root1 = new HashMap<>(); Map<Integer, Object>原创 2021-09-18 11:55:54 · 1402 阅读 · 0 评论 -
Mac 上快速切换同一程序的窗口
系统偏好设置->调度中心里可以看到这三组快捷键。转载 2021-10-21 11:19:12 · 6958 阅读 · 0 评论