- 博客(5)
- 收藏
- 关注
原创 Slowfast行为识别环境搭建(detectron2的windows环境搭建)
相信在windows下配备slowfast行为识别的代码时尤其detectron2库的安装遇到各种奇奇怪怪的问题,torch卸了装,装了卸,或者cuda版本不对应,又是卸了装装了卸的,甚至导致其他工程项目配置的环境崩溃,需要重新安装。在此描述自己成功案例,屡试不爽,本人基本项目环境:win11 pycharm23.1 cuda11.3 torch1.10.0+cu113 torchvision0.11.0+cu113。
2024-05-31 10:48:07 765
原创 class AverageMeter()的用法与含义
class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self): self.reset() def reset(self): self.val = 0 self.avg = 0 self.sum = 0 self.count = 0 def updat
2023-10-20 10:42:50 109 1
原创 解决Windows环境下(python)CUDA编程 error detected in the compilation of “kernel.cu“.报错
最近开始学习基于python核CUDA的GPU编程,发生报错error detected in the compilation of "kernel.cu",网上各种查询有的说是版本匹配问题,有的说。,回看自己的核函数发现是这一块的内容报错。
2023-07-11 02:54:50 866 3
原创 CUDA编程--内核函数、线程、线程块(一)
在实际启动内核函数时候,需要通过pycuda的get_function函数提出内核函数的引用,例如:kernal_function_togpu = kernal_function.get_function("vector_multiple")运行内核函数:kernal_function_togpu(vecin_gpu, vecout, np.float32(3), block=(512, 1, 1), grid=(1, 1, 1))# __global__用于声明为核函数,void为申明类型。
2023-07-11 02:36:26 109 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人