自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (1)
  • 收藏
  • 关注

原创 深度学习卷积参数量,图像输出尺寸,感受野的计算

深度学习卷积参数量,图像输出尺寸,感受野的计算, 是针对我之前一篇博客的一些单独抽离和总结,方便复习 文章目录1. 分组卷积2. 深度可分离卷积3. 卷积后输出的图像尺寸4. 带孔卷积5. 感受野的计算 1. 分组卷积 详细的带图解释引用参考这个链接 https://zhuanlan.zhihu.com/p/65377955 概念 将输入特征图按照通道数分成g组,每组分别进行卷积操作 计算量的...

2019-09-08 11:29:29 2659 2

原创 Pytorch在dataloader类中设置shuffle的随机数种子

如题:Pytorch在dataloader类中设置shuffle的随机数种子 虽然实验结果差别不大,但是有时候也悬殊两个百分点 想要复现实验结果 发现用到随机数的地方就是dataloader类中封装的shuffle属性 查了半天没有关于这个的设置,最后在设置随机数种子里面找到了答案 以下方法即可: def setup_seed(seed): torch.manual_seed(see...

2019-07-05 10:30:06 16814 16

原创 深度学习语义分割论文笔记(待完善)

深度学习冠脉分割论文总结 包含Unet,attention Unet等经典网络 也包含deeplab,hrnet,danet,unet++等比较新的网络

2019-06-17 11:29:43 2281 10

原创 Unet 型的网络结构为什么在医学影像分割上表现不错

看过大量的文献和代码 大部分都是Unet形的结构 即分为编码和解码两部分,中间有skip connection 不同的网络skip connection不同 Unet 形的网络结构为什么在医学影像分割上表现不错呢? 个人的理解: 医学图像边界模糊、梯度复杂,需要较多的高分辨率信息,深度学习可以做到这一点,比如上采样下采样以及skip connection和concatenation 待分割的目...

2019-05-30 09:00:46 5261

原创 Pytorch Unet深入浅出

1.Unet 作为图像语义分割里比较基本的分割网络,自然不能缺席 毕竟文题也叫Unet的深入浅出啊 1.1语义分割做什么 一开始我认为是这样的 这么理解是没错的,深度学习确实也是这样端到端的小黑盒, 目前大火的原因也是想让这个小黑盒变白 在一维信号或者特征上非常好理解 输入1*n的数据,n是特征的数量,输出一个预测值,这个值代表某种意思 但是一直不太理解在图像中应该怎么理解 直到某一天看的论文累...

2019-05-10 11:06:50 5241 3

原创 Pytorch 项目架构模板推荐

楼主因为时间没有商量好,没去上腾讯实习,阿里被路网捞起来没有去上CV岗 沉迷深度学习,故在此记录 严于律己,放上近期时间安排图,然后我们开始。 1.Pytorch Tensorflow 静态图模型,每次要放到session里,然后feed,blabla Pytorch 动态图模型,定义好了就能用,符合Python编程习惯 哈哈哈哈,所以刷题刷的多,当然用Pytorch啊 安装不用多说,pip i...

2019-05-10 10:41:15 3127 1

原创 Python刷题实用小tips集合(持续更新)

哈希表 定义:dict = {},python中叫做字典 必须键和值对应,成对出现, 重复出现的键会被后续出现的值代替 判断是否在字典中,可以使用关键字in进行组合,例如: if a in dict: 详细需参考https://www.cnblogs.com/scios/p/8108243.html ...

2019-04-03 17:07:54 849

原创 安装spacy遇到OSError问题和HTTPSConnectionPool SSLError的问题

碰到第一个问题OSError: Can’t find model ‘en’ , 使用如下命令大部分情况可以解决 python -m spacy download en 如果运气好,直接过了 运气不好会提示第二个问题 HTTPSConnectionPool SSLError “bad handshake” 那么大概率你和我一样用的conda,但是用的pip装的spacy 原因是因为conda的ssl依赖不正确的问题 所有前面装spacy的时候记住不要用pip install 下面的语句可以解决 conda

2020-06-08 15:08:45 660

原创 Jupyter lab extentions安装踩坑防雷教程

不知道大家什么情况啊 本来很简单两句话然后打开开关接着下载的事情 我就是不好使,一直提示安装nodejs和npm 可是我检查了好几遍 绝对是稳妥无误的安装了的 简直是抠破脑袋也不知道 大家都说了就那几个命令 为什么同样9年义务教务 您们却乳齿优秀 正当我哭泣之时看到了这篇博文: https://lyric.im/c/the-craft-of-selfteaching/T-appendix.jupyter-installation-and-setup 博主太详细了 从头开始的教程 无限好评啊,于是我在这里随手

2020-05-21 18:14:25 1745 3

原创 pip install或者conda install下载中卡顿,输入任意字符之后恢复

win10系统中使用pip install或者conda install的时候 出线卡顿不下载 但是随便输入字符之后 立马刷新下载的问题 pip install或者conda install下载中卡顿,输入任意字符之后恢复 其实这个问题非常简单 win10的cmd非常。。。 你一旦选中了里面的东西 比如你再下载的时候 点击了里面的某一行 下载东西的进度条就不更新了 所以解决方法如下: 点击控制台的...

2020-05-06 17:09:30 1191

原创 商汤科技面试准备

商汤科技面试准备 1.医学影像方向相关知识 dicom图像的各种指标 CTA图像的特点 MRI图像的特点 世界坐标和人体坐标及其相互转换 2.传统图像处理算法 区域生长法 水平集算法CV模型及snake模型 血管增强的Frangi算法及Hessian矩阵的特征值含义 各种去噪算法(各向异性扩散滤波,小波滤波,中值滤波) 3.深度学习图像处理算法 深度学习...

2019-10-29 20:00:43 3081

原创 Leetcode经典面试题 -- 第4周

Leetcode经典面试题 – 第4周 题目来源于Leetcode 报了一个百面机器学习面试的课程 每周都有定时打卡的作业 都是常出现于面试中的题 总结在此,时常温习, 刷题小能手们觉得写的不错可以移步个人主页 (ps:最近忙着笔试面试,更新太少) 1.递归(树)(Leetcode 110) Given a binary tree, determine if it is height-balan...

2019-09-24 09:23:37 257

原创 计算机网络常用知识点总结

参考书籍《计算机网络》第六版,作者谢希仁,电子工业出版社 总结在这里方便复习 OSI OSI(Open System interconnection) 开放式系统互联 OSI七层 体系结构 物理层,数据链路层,网络层,运输层,会话层,表示层,应用层 TCP/IP四层体系结构 网络接口层,网际层,运输层,应用层 OSI简化的五层结构 物理层,数据链路层,网络层,运输层,应用层 ...

2019-09-19 10:58:03 469

原创 神经网络相关论文总结

Name Year Chararcteristics Paper link LeNet-5 1998 开山之作,实现了参数共享,局部感知,平均池化降采样 LeNet-5(1) AlexNet 2012 使用ReLU解决梯度弥散,使用dropout解决过拟合,多GPU训练提升速度,提出了局部响应归一化(LRN)进一步防止梯度爆炸(后来证明不如BN),数据增强提升了泛化性能 Ale...

2019-09-04 10:38:50 913

原创 KMP算法Python实现

KMP算法Python实现 问题由模式串匹配,不是由字符串匹配 Next数组:当模式匹配串失配之后,Next数组对应的元素指导应该用T串的哪个元素进行下一轮的匹配 ...

2019-08-30 11:22:54 389

原创 Python约瑟夫环问题

在2019腾讯提前批实习的笔试题中就出现了约瑟夫环的问题,当时我用collections.deque来做的,每次动态的删除节点,并重新改变指向来实现的,并没有细想过有没有更快的方法。 参考知乎的这篇博客,我受到了很大的启发,因此记录其中的递归方法在这里,方便自己复习。 index before 1 2 3 4 5 6 第1轮 1 2 x 4 5 6 第2轮 4 5 x 1 2 ...

2019-08-28 14:44:48 821

原创 2019字节跳动秋招算法工程师面试经历

一面: 这里只记录,不作答,除了那道概率题,因为答案因人而异, 而且很多问题的答案是需要自己的经验回答的, 标准答案反而可能会使得面试官方案 核函数的定义,介绍几种核函数 如何理解深度学习中的分布和数据的一致性 深度学习的损失函数对分割的影响(具体),介绍几种损失函数 概率题:你和面试官摇骰子比大小,面试官可以摇n次选最大的一次,而你只能摇一次,问你获胜的概率 16∗((16)n+...+(56...

2019-07-22 22:46:51 7455

原创 Leetcode 42. Trapping Rain Water

Leetcode 42. Trapping Rain Water Python 解题思路 class Solution(object): def trap(self, height): res = 0 mx = 0 n = len(height) dp = [] for i in range(n): ...

2019-06-29 19:25:38 186

原创 Leetcode 41. First Missing Positive

Leetcode 41. First Missing Positive Python 解题思路 class Solution: def firstMissingPositive(self, nums): nums.sort() res = 1 for num in nums: if num == res: ...

2019-06-29 19:24:32 183

原创 Leetcode 40. Combination Sum II

Leetcode 40. Combination Sum II Python 解题思路 class Solution: def __init__(self): self.res = [] self.path = [] self.candidates = [] def dfs(self, target, ind): i...

2019-06-29 17:11:11 185

原创 Leetcode 43. Multiply Strings

Leetcode 43. Multiply Strings Python 解题思路 class Solution: def multiply(self, num1, num2): num1, num2 = int(num1), int(num2) ret = return str(num1 * num2) solu = Solution()...

2019-06-29 17:07:19 184

原创 Leetcode 39. Combination Sum

iven a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. The same repeated...

2019-06-14 15:46:25 195

原创 Leetcode 37. Sudoku Solver

Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: Each of the digits 1-9 must occur exactly once in each row. Each of the ...

2019-06-14 14:08:03 210

原创 Leetcode 36. Valid Sudoku

Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digits 1-9 without repetition. Each column must contain...

2019-06-14 13:21:37 185

原创 Leetcode 35. Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Ex...

2019-06-12 21:14:40 148

原创 Leetcode 34. Find First and Last Position of Element in Sorted Array

Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value. Your algorithm’s runtime complexity must be in the order of O(log n). If the t...

2019-06-12 21:06:45 172

原创 联想Lico+singularity容器制作+anaconda3安装教程

最近在使用联想Lico框架下的高性能计算平台 学校以后要扩建这个平台,现在就7个P4和两个P100 未来有更多显卡会加入(手动微笑) 这个平台不像自己电脑那样有可视化界面 为了方便管理和兼容不同环境下的训练需求 采用容器的方式规避不同框架和需求的包之间的冲突 目前Lico只支持singularity 2版本制作的镜像 这篇博文是用来引导如何安装使用singularity 2版本来制作私有镜像 s...

2019-06-11 10:20:52 4290 3

原创 Leetcode 31. Next Permutation

Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it as the lowest possible or...

2019-06-04 20:31:39 143

原创 Leetcode 30. Substring with Concatenation of All Words

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and wi...

2019-06-04 19:43:00 177

原创 Pytorch 中的view理解

一开始根据名字以为是可视化函数 但是却在别人开源的代码中发现用途不是可视化 view用法 view的作用类似于reshape 比如现在有一tensor: a = torch.range(1, 25) a 是一个长度为25 的张量。如果想将这个张量改成 5 x 5 大小的,可以使用 a = a.view(5, 5) 此时, a 的形状就成为了 5 x 5 大小的张量。注意维度要匹配 参数-1的意...

2019-06-04 15:44:59 2408 1

原创 Leetcode 29. Divide Two Integers

Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividing dividend by divisor. The integer division shoul...

2019-06-03 20:59:29 265

原创 Leetcode 28. Implement strStr()

Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = “hello”, needle = “ll” Output: 2 Example 2: Input: haystack = “aaa...

2019-06-03 20:40:17 135

原创 Leetcode 27. Remove Element

Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you must do this by modifying the input array...

2019-06-03 20:32:15 153

原创 Leetcode 26. Remove Duplicates from Sorted Array

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this by modifyin...

2019-06-03 19:47:28 155

原创 Leetcode 25.Reverse Nodes in k-Group

Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of n...

2019-06-03 19:29:33 185

原创 Leetcode 24. Swap Nodes in Pairs

Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list’s nodes, only nodes itself may be changed. Example: Given 1->2->3->4, you sho...

2019-06-03 18:32:20 162

原创 Pytorch tversky损失函数

楼主最近疯狂Pytorch 做的项目是关于冠状动脉血管分割的 看了很多论文,建议修改loss函数解决不平衡的分类目标 但是只要换成默认的BCEloss 网络训练的dice指数一直是0。。。 。。。 。。。 。。。 只能勉强用微笑掩盖自己的泪水 疯了好久 。。。 。。。 只要换掉默认的BCE损失函数 训练的dice指数bee为0 且不随时间改变 稳定的程度简直让我!@#¥%……&**…………...

2019-05-14 21:55:41 7747 12

原创 Leetcode经典面试题 -- 第3周

Leetcode经典面试题 – 第3周 题目来源于Leetcode 报了一个百面机器学习面试的课程 每周都有定时打卡的作业 都是常出现于面试中的题 总结在此,时常温习, 刷题小能手们觉得写的不错可以移步个人主页 (ps:最近忙着笔试面试,更新太少) 1.字符串(Leetcode 409) Given a string which consists of lowercase or uppercas...

2019-04-04 21:45:24 671

原创 Leetcode经典面试题 -- 第2周

Leetcode经典面试题 – 第2周 题目来源于Leetcode 报了一个百面机器学习面试的课程 每周都有定时打卡的作业 都是常出现于面试中的题 总结在此,时常温习, 刷题小能手们觉得写的不错可以移步个人主页 (ps:最近忙着笔试面试,更新太少) 1.二分(Leetcode 69) Implement int sqrt(int x). Compute and return the square ...

2019-04-02 21:59:21 552

原创 Leetcode经典面试题 -- 第1周

Leetcode经典面试题 – 第一周 题目来源于Leetcode 报了一个百面机器学习面试的课程 每周都有定时打卡的作业 都是常出现于面试中的题 总结在此,时常温习 1.双指针(Leetcode 167) Given an array of integers that is already sorted in ascending order, find two numbers such that...

2019-04-02 15:14:09 912

随机森林matlab工具箱

随手转发matlab随机森林的工具箱,觉得有用的可以为学生党捐献微乎其微的1积分,谢谢

2017-10-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除