![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码调试
流浪机器人
机器人科学与工程在读博士
研究方向-语义分割,深度估计,3D目标跟踪,深度学习&SLAM,动态物体分割
展开
-
Opencv 4.2 contribute cuda10 安装(orb-slam)
ORBSLAM opencv cuda_stereo 安装opencv 4.2 下载OpenCV 4.2.0:https://github.com/opencv/opencv/releases/tag/4.2.0OpenCV Contib 4.2.0:https://github.com/opencv/opencv_contrib/releases/tag/4.2.0cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/原创 2021-11-16 11:38:36 · 2046 阅读 · 1 评论 -
Monodepth2 加入IMU数据
为了将IMU传感器数据融合到网络之中,需要让IMU和图片同步输入到训练网络中1.通过pykitti读取IMU数据在kitti_dataset.py 中KITTIRAWDateset()中通过pykitti utils.load_oxts_packet_ande_pose()获取oxts文件 def load_oxts(self,folder,frame_index, do_flip):...原创 2019-12-18 15:47:17 · 539 阅读 · 0 评论 -
pykitti工具 KITTI 数据集oxts 文件读取
Python Kitti数据工具读取工具https://blog.csdn.net/zhuogoulu4520/article/details/102254664OXTS文件中提供的GPS/IMU数据集合49.015003823272 8.4342971002335 116.43032836914 0.035752 0.00903 -2.6087069803847 -6.8114414791...原创 2019-12-18 12:28:00 · 5268 阅读 · 2 评论 -
Real-time stereo 代码调试
shift_corr.so: shift_corr.cc shift_corr.cu.o g++ $(CFLAGS) -o shift_corr.so shift_corr.cc shift_corr.cu.o $(LDFLAGS) -D RUN_GPU=$(USE_GPU)shift_corr.cu.o: shift_corr.cu.cc nvcc -arch=sm_60 -std=c...原创 2019-11-26 11:58:36 · 391 阅读 · 0 评论 -
python 格式化.format( )用法
.format() 用法相对基本格式化输出采用‘%’的方法,format()功能更强大,该函数把字符串当成一个模板,通过传入的参数进行格式化,并且使用大括号‘{}’作为特殊字符代替‘%’使用方法由两种:b.format(a)和format(a,b)。1、基本用法(1)不带编号,即“{}”(2)带数字编号,可调换顺序,即“{1}”、“{2}”(3)带关键字,即“{a}”、“{tom}”...原创 2019-11-21 14:43:35 · 1502 阅读 · 0 评论 -
KITTI数据集遍历提取图像深度图
在处理kitti_raw时需要读取所有文件中的lift_image , right_image, lift_depth, right_depth 图像或者雷达数据集,通过OS OS.path可以方便快速遍历所有文件,提取数据集import osimport os.pathpath_raw = r"/media/lab316/d67037a3-ff7d-40d1-8483-bfab35d37...原创 2019-11-20 20:59:11 · 3473 阅读 · 0 评论 -
RuntimeError: expected device cuda:0 and dtype Float but got device cuda:0 and dtype Long
RuntimeError: expected device cuda:0 and dtype Float but got device cuda:0 and dtype Longpytorch 版本问题 将1.2换为1.3原创 2019-11-20 19:59:40 · 8395 阅读 · 5 评论 -
数据读取文件操作os ,os.path
os 文件操作功能python 教程连接os.getcwd() ##返回值就是当前工作目录 #得到当前工作目录,即当前Python脚本工作的目录路径os.listdir(pathname)## 返回指定目录下的所有文件和目录名 #返回指定目录下的所有文件和目录名: ——返回值为指定目录下的所有文件名和目录名os.remove() ## 函数用来删除一个文件 #删除指定的文...原创 2019-11-14 19:43:20 · 1263 阅读 · 0 评论 -
#代码调试 读取所有目录下子文件路径存入list[]中
遍历所有的子目录然后按照条件将目录存入list中,这是处理训练集特别有用的方法 def file_name(file_dir): L=[] for root, dirs, files in os.walk(file_dir): for file in files: if os.path.splitext(file)[1] == '.jpe...原创 2019-11-06 21:07:35 · 305 阅读 · 0 评论 -
monodetpht2 调试
1.出现调试尺寸问题from future import absolute_import, division, print_functionTrainingTraceback (most recent call last):File “train.py”, line 18, in trainer.train()File “/home/lab316/Documents/Code/mono...原创 2019-10-17 22:14:48 · 283 阅读 · 0 评论 -
错误指南
def conv3x3(in_planes, out_planes, stride=1):"3x3 convolution with padding"return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False)和def conv3x...原创 2019-10-16 12:33:11 · 423 阅读 · 0 评论 -
NYUv2 数据集的40类问题
NYU v2数据集官方下载地址:https://cs.nyu.edu/~silberman/datasets/nyu_depth_v2.htmlNYU有两种数据集,一种是带标注的有1449张带有语义、深度标签;另一种是只有RGB图像的数据集。对于nyu_depth_v2_labeled.mat数据集,获取RGB,depth,labeld,需要对数据集进行提取:提取方法nyuv2 class_...原创 2019-09-29 16:23:43 · 3303 阅读 · 1 评论 -
mmdetection 调试过程
optimizer SyntaxError: invalid syntax调用GroupSampler 得到sampler发生错误原因:mmdet/dataset/loader 下的 build_loader.py 单GPU和多GPU的分配写反了改为:if dist: rank, world_size = get_dist_info() sampler = Distrib...原创 2019-09-20 08:04:27 · 1958 阅读 · 0 评论 -
数据集读取总结Image.open和cv2.imread
数据集读取总结生成可检索的地址字典集 data_path = listfilenamedata_file_name = ["nyu_images/", "nyu_depths/", "nyu_hha/", "nyu_labels/"]examples = []example = {}for data_dir in data_file_name: img_dir = data_p...原创 2019-09-11 12:17:43 · 1669 阅读 · 0 评论