logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

self-attention(以及transformer)--简单学习笔记

self-attention(以及transformer)--简单学习笔记

#servlet#jar#java
opencv c++ 报错Error: Assertion failed (depth == CV_32F || depth == CV_64F) in cv::pow, file E:\opencv

原因:所调用的函数对矩阵Mat中的元素类型有要求,调试发现实参mat的元素类型为int16,类型不匹配解决:调用前进行类型转换,如:img_x.convertTo(img_x, CV_64F); //类型转换之后再相乘src_mat.convertTO(dst_mat,type);转换后成功运行~...

#opencv
使用hugging face提供的预训练模型,报错:ImportError: cannot import name ‘DatasetInfo‘ from ‘huggingface_hub.hf_api

背景:使用hugging face提供的预训练模型,报错:ImportError: cannot import name 'DatasetInfo' from 'huggingface_hub.hf_api'原因:transformers库或huggingface_hub的版本已经out of date了,使用一下指令更新之后,即可正常运行。解决:更新......

#python
GPU上的tensor调用numpy报错:TypeError: can‘t convert cuda:0 device type tensor to numpy. Use Tensor.cpu() t

完整报错:TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.环境:python3,笔记本带cuda原因:numpy只能再cpu上调用,GPU上的tensor不可调用(如何将model,tensor放到GPU上可以参

#深度学习#python#tensorflow
git push报错error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)send-pac

git push 完整报错:error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)send-pack: unexpected disconnect while reading sideband packet

#git#github
记录一次django项目遇到的问题

记录一次django项目遇到的问题(含一些python 坑)

#django#python#后端
“python扩展正在加载”一直在加载或加载python扩展失败

环境vscode1.查看插件:可能是安装了多个版本的python,卸载到只剩一个2.点击插件上的重新启动,或直接关闭vscode再重新打开3.如果还是一直“python扩展正在加载”,将最后剩的一个python插件卸载,再重新安装为2021.2之前的版本,如下4.再点击插件上的重新启动vscode,即可解决问题...

#vscode#python
vscode中调试jupyter notebook

首先需要配置jupyter notebook的环境(如已配置直接跳到第二步):1. 在插件中找到“jupyter”插件并安装(但一般只要安装python插件即可,因为已经被融合了)2.终端安装调试插件:pip3 install ipykernel3. 自行穿件.ipynb文件后,打开,看到顶部栏如下:点击三个点处 ,选择“导出”->选择“python脚本”即可直接将该ipynb文件变成对应的

#vscode#jupyter#编辑器
PCM及一些音频数据知识--学习笔记

PCM及一些音频数据知识--学习笔记

#学习
springboot项目使用@Autowired 自动注入报错为null的解决

springboot项目使用@Autowired 自动注入报错为null的解决

#spring boot#java#spring
    共 26 条
  • 1
  • 2
  • 3
  • 请选择