- 博客(14)
- 收藏
- 关注
原创 Segment-Anything TensorRT部署------onnx转engine踩坑
SAM模型TensorRT部署及pytorch转onnx转engine文件踩坑
2024-12-05 15:37:41
301
原创 segment-anything-cpp-wrapper使用踩坑及经验
no signature found for 问题。github原文档叙述并不清晰,大部分实现文章都省略了对于两个onnx参数的生成细节。通过scripts文件夹的export_onnx_model.py生成,生成命令如下。1、sam_vit_h_4b8939.onnx的来历。2、sam_preprocess.onnx的来历。生成以上两个onnx后就可以运行分割程序。该onnx文件来自于。后续切换如下环境解决。
2024-11-22 18:58:37
324
原创 modbus协议的认识和libmodbus库使用
一、modbus协议MODBUS协议支持传统的RS-232、RS-422、RS-485和以太网设备。许多工业设备,包括PLC,DCS,智能仪表等都在使用Modbus协议作为他们之间的通讯标准。modbus的功能代码:0x01: 读线圈寄存器0x02: 读离散输入寄存器0x03: 读保持寄存器0x04: 读输入寄存器0x05: 写单个线圈寄存器0x06: 写单个保持寄存器0x0f: 写多个线圈寄存器0x10: 写多个保持寄存器详见:https://blog.youkuaiyun.com/l
2021-12-20 10:32:00
2870
原创 疑问:CLion里不执行CUDA核函数
在windows系统下,安装CUDA环境和VS后,VS可以正常执行CUDA核函数,打印核函数里的printf语句,为什么使用CLion运行就无法打印核函数里的printf语句?
2021-12-18 20:50:01
327
原创 Use of undeclared identifier cudaConfigureCall(windows10 CLion CUDA )
关于环境安装见其他博客CLion下cu文件中调用hello核函数,出现Use of undeclared identifier cudaConfigureCall解决方法:在cuda安装路径下C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0新建version.txt文件,然后输入CUDA Version 11.0.221(根据自己实际安装版本填写,nvcc -V查阅)保存文件后关闭Clion重新打开,即可修复..
2021-12-18 20:44:52
1389
1
原创 VS2019 CUDA11.0 __global__ kernel函数printf不输出
右键cu文件点击属性,黑圈圈住的地方要跟自己的显卡算力匹配。cuda 计算能力查询表_Allyli0022的专栏-优快云博客_cuda算力查询
2021-11-09 19:11:03
1073
原创 运行TANet出现的一些问题及解决方案
1、result type Byte can't be cast to the desired output type Bool(voxelnet.py line993)opp_labels=(box_preds[...,-1] >0) ^dir_lables.byte()改为opp_labels=(box_preds[...,-1] >0) ^dir_lables.to(torch.bool)2、TypeError: 'numpy.float64' object cannot b
2021-03-08 12:56:27
381
原创 基于nuScenes数据集的pointpillars代码复现(second.pytorch)
nuScenes数据集加速下载请参阅如下博客:https://blog.youkuaiyun.com/weixin_38423729/article/details/111059557second.pytorch代码地址如下:https://github.com/traveller59/second.pytorch未完待续。。。
2020-12-17 22:39:39
1789
1
原创 运行setup.py无法编译spconv的问题--ubuntu18.04
本人电脑配置Ubuntu18.04,cuda10.1,cmake3.13.5,python3.7,pytorch1.4编译成功的spconv文件下载于:https://github.com/jinfagang/spconv执行python setup.py bdist_wheel时遇到各种问题,主要是returned non-zero exit status 1或returned non-zero exit status 2以及编译过程中的The CUDA compiler "/usr/.
2020-12-13 22:32:48
2983
21
原创 linux系统下nuScenes数据集快速下载方法
下载数据的链接为 https://www.nuscenes.org/download但是用浏览器下载链接时,下载速度比较慢,而且下载链接容易断掉,需要人为再次点击继续下载。解决方法:适用于linux系统:打开终端,输入如下命令wget -c -O v1.0-mini.tar "https://s3.ap-southeast-1.amazonaws.com/asia.data.nuscenes.org/public/v1.0/v1.0-mini.tgz?AWSAccessKeyId=AKIA
2020-12-12 13:36:03
8031
12
原创 关于函数tf.scatter_nd的例子
1indices = tf.constant([[0,0,0], [0,2,1]])updates = tf.constant([5,6])shape = tf.constant([4, 4, 4])scatter = tf.scatter_nd(indices, updates, shape)print(scatter)tf.Tensor([[[5 0 0 0] [0 0 0 0] [0 6 0 0] [0 0 0 0]][[0 0 0 0] [0 0 0 0]...
2020-12-02 16:56:22
635
转载 getParameter与getAttribute
对于纯粹的Servlet应用来说,getParameter是用来取得客户端以GET方式(xxx.do?xxx=123)或POST方式(表单提交)传递的数据。而request.getAttribute()只能获取到request.setAttribute()设置的数据,主要用途是在Servlet转发JSP的过程中传递数据。
2017-11-05 22:41:19
177
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人