- 博客(92)
- 收藏
- 关注

原创 算法岗面试准备LeetCode刷题专栏
LeetCode刷题专栏LeetCode 21 合并两个有序链表图解code1code2LeetCode 21 合并两个有序链表图解code1/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x)...
2019-09-29 01:45:48
6793
3

原创 剑指offer刷题专栏C++
剑指offer刷题专栏C++剑指offer 面试题3 数组中重复的数字剑指offer 面试题3 数组中重复的数字2(不修改数组)剑指offer 面试题4 二维数组中的查找剑指offer 面试题5 替换空格code1code2剑指offer 面试题6 从尾到头打印链表剑指offer 面试题7 重建二叉树剑指offer 面试题8 用两个栈实现队列code1code2剑指offer 面试题9 斐波那契数...
2019-09-02 01:23:33
2449

原创 面试准备篇之算法岗
面试准备篇之算法岗简介1、语言基础知识准备(1) C++(2) Python简介在这里记录自己准备找工作的历程,接下来的半年会根据自己的学习和成长来更新。。。1、语言基础知识准备(1) C++(2) Python...
2019-08-04 17:20:13
7470
2
原创 waymo数据集下载
waymo数据集下载方法安装 pip。安装 gsutil。下载数据集安装 pip。我们建议您使用 pip 安装程序。您可以使用以下命令安装该程序:sudo easy_install -U pip安装 gsutil。如需从 PyPI 安装 gsutil,请使用以下命令:sudo pip install gsutil下载数据集gsutil -m cp -r "gs://waymo_open_dataset_v_1_3_0/" . ServiceException: 401 Anonymou
2022-04-07 22:40:44
7287
1
原创 环境踩坑记录
环境踩坑记录问题1: version `GLIBCXX_3.4.22' not found问题1: version `GLIBCXX_3.4.22’ not foundfrom . import pypocketfft as pfftImportError: /home/hadoop-automl/cephfs/data/local/gcc-5.4.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.22’ not found (required by /mnt/
2022-02-15 11:43:54
891
原创 openMVS代码逐行解析系列(2)
openMVS代码逐行解析一、openMVS/libs/MVS/Image.cpp文件代码解析一、openMVS/libs/MVS/Image.cpp文件代码解析IMAGEPTR Image::OpenImage(const String& fileName){ #if 0 if (Util::isFullPath(fileName)) return IMAGEPTR(CImage::Create(fileName, CImage::READ)); return IMAGEPTR(
2021-10-10 19:45:37
1358
原创 openMVS代码逐行解析系列(1)
openMVS代码逐行解析一、openMVS安装运行1、按照官网编译源码2、运行demo3、结果展示一、openMVS安装运行1、按照官网编译源码官方代码:GitHub地址#Install dependenciesbrew updatebrew install boost eigen opencv cgalmain_path=`pwd`#GLFW3 (Optional)brew install glew glfw3#VCGLib (Required)git clone https:
2021-10-10 19:33:02
1922
原创 DFS之岛屿问题总结
岛屿问题岛屿的数量每个岛屿的最小boundingbox岛屿的数量class Solution { public: vector<vector<char>> grid; int x[4] = {-1, 0, 1, 0}, y[4] = {0, 1, 0, -1}; int numIslands(vector<vector<char>>& grid_) {
2021-06-01 23:37:13
173
原创 SDF函数学习
SDF函数学习2D SDF3D SDF2D SDF2D distance functions12D distance functions23D SDF3D distance functions13D distance functions2
2020-12-11 11:50:33
984
原创 CGAL库学习系列之一
CGAL库学习系列之一#样例1解析#include <iostream>#include <CGAL/Simple_cartesian.h>typedef CGAL::Simple_cartesian<double> Kernel;typedef Kernel::Point_2 Point_2;typedef Kernel::Segment_2 Segment_2;int main(){ Point_2 p(1,1), q(10,10); std:
2020-11-14 16:04:50
1091
原创 环境安装配置系列
环境安装配置mesh2plane1、安装opencv3.42、安装CGAL安装gcc-9, g++-9mesh2plane1、安装opencv3.42、安装CGALCGAL源码安装安装gcc-9, g+±9apt-get updateapt-get upgradeapt-get install gcc-9apt-get install g++-9update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100update
2020-10-21 19:33:48
285
原创 git
[sunxiaofei007@vr-gpu06 data0]$ cd ~/.ssh/[sunxiaofei007@vr-gpu06 .ssh]$ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/sunxiaofei007/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same pas
2020-10-14 12:28:36
110
原创 __getitem__(), __len__()等方法的实例详解
python中特殊方法的实例详解__getitem__()和__len__()getitem()和__len__()class Animal: def __init__(self, animal_list): self.animals_name = animal_list def __len__(self): return len(self.animals_name) def __getitem__(self, index):
2020-09-29 17:06:03
221
原创 深度学习模型训练之数据增强
数据增强import randomimport numpy as npimport cv2from PIL import Imageimport osbase_size = 1024scale = Truerotate = Truecrop_size = 1200flip = Trueblur = Falsedef augmentation(pp_path, image, label): h, w, _ = image.shape # Scaling, we se
2020-09-29 12:45:43
762
原创 基于深度学习的3D点云分割汇总
3D点云分割1、PointNet: Deep Learning on Point Sets for 3D Classification and Segmentationwebpagepapercode2、PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Spacepapercode
2020-09-10 16:15:23
638
原创 ubuntu18 nodejs和npm的安装
ubuntu18安装nodejs和npmsudo apt-get install nodejssudo apt install libssl1.0-dev nodejs-dev node-gyp npmlibssl1.0-dev安装如果出错apt-get install aptitudesudo apt-get install aptitudesudo aptitude install libssl-dev
2020-09-09 11:55:10
592
原创 numpy使用技巧
1、 numpy实现多个矩阵的拼合操作c1 = np.array([[1,1,1,1],[0,0,0,0],[0,0,0,0],[0,0,0,0]])c2 = np.array([[0,0,0,0],[2,2,2,2],[0,0,0,0],[0,0,0,0]])c3 = np.array([[0,0,0,0],[0,0,0,0],[3,3,3,3],[0,0,0,0]])c4 = np.array([[0,0,0,0],[0,0,0,0],[0,0,0,0],[4,4,4,4]])#目标合成如下矩
2020-07-31 11:11:06
920
原创 .npy转png
.npy转pngimport matplotlib.pyplot as pltimport numpy as npimport scipy.miscimport osfile_dir = "./data/mask/" # npy文件路径dest_dir = "./data/mask/" # 文件存储的路径def npy_png(file_dir, dest_dir): # 如果不存在对应文件,则创建对应文件 if not os.path.exists(file_d
2020-07-21 20:43:01
909
1
原创 互联网笔试习题汇总
美团笔试3.19第三题题目代码第三题题目代码#include<iostream>#include<algorithm>using namespace std;typedef long long LL;const int N = 110;int a[N];int s[N], n, k, m, p, q;int main() { cin &g...
2020-03-23 18:25:06
1099
原创 字节跳动笔试
字节跳动笔试题目1:题目2:题目3:题目4:题目1:#include<iostream>#include<vector>#include<algorithm>using namespace std;int main(){ vector<int> A, B; int n; int i, j; int sum; int t...
2020-03-09 12:26:38
3269
1
原创 论文写作之Latex使用技巧
论文写作之Latex使用技巧两张图片并列代码展示两张图片并列代码展示%添加包\usepackage{subfigure}\begin{figure}[htbp]\centering\subfigure{ \begin{minipage}[b]{.4\linewidth} \centering \includegraphics[scale=0.3]{figure1} \en...
2020-03-03 18:08:51
725
原创 Geometry Meets Deep Learning(专栏)
Geometry Meets Deep Learning2017201620152017Inverse Compositional Spatial Transformer Networkspaper-CVPR2017Convolutional neural network architecture for geometric matchingpaper-CVPR2017...
2019-12-16 21:28:18
480
原创 机器学习系列之线性回归
线性回归线性回归的从零开始实现线性回归的简洁实现线性回归的从零开始实现import torchfrom IPython import displayfrom matplotlib import pyplot as pltimport numpy as npimport randomnum_inputs = 2num_examples = 1000w = [2, -3.4]b ...
2019-12-13 14:19:09
224
原创 深度学习训练数据处理的一些操作解析
深度学习训练数据处理的一些操作解析指定文件list生成文件目录指定文件list生成文件目录import argparsefrom path import Pathparser = argparse.ArgumentParser()parser.add_argument("--dataset-dir", default='./Dataset/KITTI_Raw', type=str, ...
2019-11-25 15:34:59
655
原创 python path包的使用详解
python path包的使用详解import argparsefrom path import Pathparser = argparse.ArgumentParser()parser.add_argument("--dataset-dir", default='./infer_data/input', type=str, help="Dataset directory")pars...
2019-11-25 14:18:15
2545
原创 python 命令行工具 argparse使用详解
python 命令行工具 argparse使用详解12 添加一个参数action 参数的使用1新建test.py文件,代码如下:import argparseparser = argparse.ArgumentParser()parser.parse_args()2 添加一个参数import argparseparser = argparse.ArgumentParser...
2019-11-25 11:50:49
288
原创 Tensorflow2.0学习记录
Tensorflow2.0#机器学习##线性回归import tensorflow as tfprint('Tensorflow Version:{}'.format(tf.__version__))import pandas as pddata = pd.read_csv('./dataset/Income1.csv')datamodel = tf.keras.Sequenti...
2019-11-21 13:00:55
933
1
原创 c++100问
C++100问1、 指针和引用的区别2、智能指针3、虚函数和纯虚函数的区别4、什么是友元函数?5、什么是多态?1、 指针和引用的区别(1)引用被创建的同时必须被初始化(指针则可以在任何时候被初始化)。(2)不能有 NULL 引用,引用必须与合法的存储单元关联(指针则可以是 NULL)。(3)一旦引用被初始化,就不能改变引用的关系(指针则可以随时改变所指的对象)。(4)指针可以有多级,但是...
2019-10-22 22:46:40
267
原创 pytorch 计算flops、params和fps
pytorch 计算flops和paramsfrom thop import profileimport torchfrom resnet_18 import Resnet_18, resnet18model = Resnet_18()input = torch.randn(1, 3, 256, 256)flops, params = profile(model, inputs = ...
2019-10-22 11:46:34
11259
7
原创 双线性插值python实现
双线性插值python实现#!/usr/bin/python# -*- coding: utf-8 -*- __author__ = 'Alex Wang' import numpy as npimport cv2import time '''python implementation of bilinear interpolation''' def bilin...
2019-10-13 15:57:12
535
原创 智力题100题
智力题100题题1题1甲、乙两人轮流往一个圆桌面上放同样大小的硬币.规则是:每人每次只能放一枚,硬币不许重叠,谁放完最后一枚硬币而使对方再也无处可放,谁就获胜.如果甲先放,那么他怎样放才能取胜?答:如果甲先放,他要把第一枚硬币放到圆桌面的圆心处,以后总在乙上次放的硬币的对称点放置硬币,这样才能取胜....
2019-10-12 09:43:03
742
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人