自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 fixture ‘image_name‘ not found解决方法

经过查阅网上资料发现,PyCharm会将以test、test_开头的函数视作测试函数,将test函数名改成mytest就可以了。

2022-08-09 15:26:49 347 1

原创 解决报错:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

做项目时遇到以下报错:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program.网上查阅资料说是文件重复,但是我并不想去删除文件(可能后面会用到),然后我就加了如下代码,完美解决。.

2022-05-31 15:26:28 290

原创 解决报错:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.

做项目时,出现如下报错:OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance

2022-05-31 15:20:09 532

原创 RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is

pytorch,pycharm下做项目遇到的一个小问题,报了如下错误:RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your s

2022-05-31 15:11:53 1640 3

原创 pth转onnx

前段时间做项目需要将pth转成onnx模型,这里将经验分享出来。首先你得看你的pth模型是只有参数还是说既有参数,也有模型结构,怎么看呢?将你的pth模型在netron中打开Netron,如果模型是黑白的,就说明只有参数,没有模型结构,如图一。如果是彩色的,就是既有参数也有模型结构的,如图二。下面直接上代码(只有参数的pth):import torchimport nets.facenet as modelsfrom utils.config import cfg_mnettorch_

2022-05-31 14:58:15 4304 7

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除