摘要: 1. 安装了keras_segmentation的包,使私人写的预先训练的网络。 阅读全文
posted @ 2019-05-24 09:22 热之雪 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1、collection.nametuple是一个工厂函数,可以很方便地定义一种数据类型,它具备tuple的不变性,又可以根据属性来引用,使用十分方便,而不需要重新定义一个类那么麻烦。 2、定义类的一些技巧 3、 还有一系列的特殊方法。 4、为什么len不是普通的方法?运行更快。 5、 容器序列(存 阅读全文
posted @ 2019-05-15 19:07 热之雪 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 时间顺序: FCN 、SegNet 、U-Net、Dilated Convolutions 、DeepLab (v1 & v2) 、RefineNet 、PSPNet 、Large Kernel Matters 、DeepLab v3 。 1、Fully Convolution Networks ( 阅读全文
posted @ 2019-05-02 10:04 热之雪 阅读(5673) 评论(0) 推荐(0) 编辑
摘要: 696. Count Binary Substrings 阅读全文
posted @ 2018-12-07 13:21 热之雪 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 前序非递归遍历 中序非递归遍历 后序非递归遍历 要保证根结点在左孩子和右孩子访问之后才能访问,因此对于任一结点P,先将其入栈。如果P不存在左孩子和右孩子,则可以直接访问它;或者P存 在左孩子或者右孩子,但是其左孩子和右孩子都已被访问过了,则同样可以直接访问该结点。若非上述两种情况,则将P的右孩子和左 阅读全文
posted @ 2018-12-06 18:07 热之雪 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 665. Non-decreasing Array Input: [4,2,3] Output: True Explanation: You could modify the first 4 to 1 to get a non-decreasing array.递增 思路:贪心思想,找异常值,存在两 阅读全文
posted @ 2018-12-06 11:19 热之雪 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 563. Binary Tree Tilt 566. Reshape the Matrix 572. Subtree of Another Tree 581. Shortest Unsorted Continuous Subarray 594. Longest Harmonious Subseque 阅读全文
posted @ 2018-12-04 09:37 热之雪 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 492. Construct the Rectangle Input: 4 Output: [2, 2] Explanation: The target area is 4, and all the possible ways to construct it are [1,4], [2,2], [4 阅读全文
posted @ 2018-11-23 11:10 热之雪 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 448. Find All Numbers Disappeared in an Array 思路:把数组的内容和index进行一一对应映射,映射规则是取反,由此可知,重复出现两次的数字会变为正,出现一次的为负。 需要注意的是,如果不能增加额外空间的话,要在本数组上面进行映射,这时候就需要内容-1=i 阅读全文
posted @ 2018-11-19 14:41 热之雪 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 53. Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return i 阅读全文
posted @ 2018-11-17 17:28 热之雪 阅读(272) 评论(0) 推荐(0) 编辑