自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 网络图像优化

原文为yuiblog.com上的Image Optimization第一部分介绍图像的重要性,这里略过2 选择正确的文件格式原文:https://yuiblog.com/blog/2008/11/04/imageopt-2/网络图像中常见的格式包括GIF、JPEG和PNG,这里主要介绍这三种格式。GIFGIF是一种调色盘(palette)形式的图像格式,调色盘最多包含256中颜色,每个...

2019-05-15 20:55:20 606

原创 c++ error: redeclaration of "XXX" may not have default arguments

模板函数的默认参数似乎必须在第一次声明的时候给出。stackoverflow上的例子#include <string>#include <iostream>class MyClass { public: std::wstring msg = L"hey"; MyClass(){};};class MyClass2{ publi...

2019-04-25 10:19:20 12188 3

转载 训练GAN网络的技巧

How to Train a GAN? Tips and tricks to make GANs workWhile research in Generative Adversarial Networks (GANs) continues to improve the fundamental stability of these models, we use a bunch of tricks ...

2018-11-05 09:56:41 1194

原创 815. Bus Routes

题目We have a list of bus routes. Each routes[i] is a bus route that the i-th bus repeats forever. For example if routes[0] = [1, 5, 7], this means that the first bus (0-th indexed) travels in the sequ...

2018-10-30 09:17:05 196

转载 tensorflow中batch normalization层要注意的一个细节

在TensorFlow中,如果我们要使用batch normalization层,可以使用的API有tf.layers.batch_normalization和tf.contrib.layers.batch_norm,如果我们直接使用这两个API构建我们的网络,往往会出现训练的时候网络的表现非常好,而当测试的时候我们将其中的参数is_training设置为False时,网络的表现非常的差。这种时...

2018-10-25 11:53:43 1532 1

原创 406. Queue Reconstruction by Height

题目Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of people in front of th...

2018-10-08 21:58:38 203

原创 382. Linked List Random Node

题目Given a singly linked list, return a random node’s value from the linked list. Each node must have the same probability of being chosen.Follow up:What if the linked list is extremely large and it...

2018-10-08 10:17:36 120

转载 bash shell走socks5代理

之前搭了一个VPS,用的是socks5的协议。chrome上有现成的插件所以一直都可以用,但在bash shell上始终不知道应该怎么通过这个代理来访问网站。在网上查了一下,bash上配置代理是export两个环境变量export http_proxy=socks5://127.0.0.1:1080export https_proxy=socks5://127.0.0.1:1080但尝试...

2018-09-29 16:19:43 9523

原创 41. First Missing Positive

题目Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Example 3:Input: [7,8,9,11,12]Output: 1Not...

2018-09-28 17:32:57 70

原创 783. Minimum Distance Between BST Nodes

题目Given a Binary Search Tree (BST) with the root node root, return the minimum difference between the values of any two different nodes in the tree.Example :Input: root = [4,2,6,1,3,null,null]Outp...

2018-09-27 18:14:37 130

原创 352. Data Stream as Disjoint Intervals

题目Given a data stream input of non-negative integers a1, a2, …, an, …, summarize the numbers seen so far as a list of disjoint intervals.For example, suppose the integers from the data stream are 1,...

2018-09-27 18:07:54 116

原创 136. Single Number

题目Given a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexity. Could you implement it without u...

2018-09-25 21:52:20 86

原创 论文笔记 圆轨道MDCT/CBCT锥角伪影及如何抑制[1]

标题On the data acquisition, image reconstruction, cone beam artifacts, and their suppression in axial MDCT and CBCT – A review摘要近年来,多排CT(MDCT)和锥束CT(CBCT)在临床诊断中扮演了越来越重要的角色,但这些CT成像技术本身会导致一些伪影称为CB伪影。本文...

2018-09-20 20:32:18 2867

原创 849. Maximize Distance to Closest Person

题目In a row of seats, 1 represents a person sitting in that seat, and 0 represents that the seat is empty.There is at least one empty seat, and at least one person sitting.Alex wants to sit in the s...

2018-09-20 18:14:13 140

原创 796. Rotate String

题目We are given two strings, A and B.A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, if A = ‘abcde’, then it will be ‘bcdea’ after o...

2018-09-19 21:49:02 87

原创 342. Power of Four

Power of Four题目难度思路代码结果感想题目Given an integer (signed 32 bits), write a function to check whether it is a power of 4.Example:Given num = 16, return true. Given num = 5, return false.Follow up: Coul...

2018-09-19 21:33:27 80

空空如也

空空如也

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

TA关注的人

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