- 博客(5)
- 收藏
- 关注
原创 fixture ‘image_name‘ not found解决方法
经过查阅网上资料发现,PyCharm会将以test、test_开头的函数视作测试函数,将test函数名改成mytest就可以了。
2022-08-09 15:26:49 364 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 300
原创 解决报错: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 543
原创 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 1653 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 4376 7
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人