自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Frozen_Forest

无语

  • 博客(219)
  • 收藏
  • 关注

原创 Embedding Expansion: Augmentation in Embedding Space for Deep Metric Learning 阅读笔记

本文受到query expansion和database augmentation的启发,提出了一种embedding augmentation,称之为。即通过一定方式来合成embedding,增加网络学习多样化的难样本。无参、适用性强,达到SOTA精度。第一次用query检索,得到gallery中的一串候选结果,然后拿候选结果再到gallery中查询一次,得到更准确的检索结果。

2022-08-20 18:22:55 258 1

原创 Jupyter lab中import sklearn报错的解决方法

在import sklearn时报出类似于DLL找不到的错误,看了很多网上的方法,什么卸载几个包再重新安装,完全无效,加上我是用Anaconda的,肯定得用conda安装。于是在看到某一篇提到sklearn和numpy-mkl这个东西有关系,然后试了下在conda环境里把MKL升级到然后这样就没报错了...

2019-07-31 22:02:39 1873

原创 CSDN博客暂时停用,移至CNBLOG和Hexo

cnblog:Blackopshexo:Blackops

2019-02-28 10:03:11 1028

原创 《统计学习方法》读书笔记(1)——感知机学习算法的简单Python实现

第二章感知机的内容,学过考研数学三门课的基本可以看懂,看到算法部分觉得实现并不难,构思了一会儿决定代码实现验证一下,然而过程中把参数www当作了数学中的变量而卡了好一会儿,现学了下numpy发现还是可以写出来的。P30P_{30}P30​的伪代码实现:import numpy as npn = 3w = np.array([0, 0])x = np.array([(3, 3), (4,...

2019-02-19 14:51:49 196

原创 WIN10/7 tensorflow-gpu+keras深度学习工具安装及测试

WIN10/7 tensorflow-gpu+keras+CUDA9.0+CUDNN深度学习工具安装及测试个人硬件环境个人软件环境一.安装Anaconda Python3.7并配置Python3.6的环境和其下必要包二.安装CUDA9.0和对应版本CUDNN三.安装Pycharm(社区免费版)四.小结个人硬件环境E3-1231V3+GTX970(4G)个人软件环境WIN7 SP1 6...

2019-02-13 23:03:58 942

原创 tensorflow-gpu(tensorflow)报错init() got an unexpected keyword argument 'serialized_options'的一种解决方法

前几天在训练模型的时候不知道搞了什么,突然就发现涉及到tensorflow的代码一运行立马报错类似于程序遇到意外结束之类的。然后Pycharm的Run窗口里的错误末尾提示了:init() got an unexpected keyword argument 'serialized_options’于是百度了一发,发现可能是protobuf这个包的版本和tensorflow-gpu(或者不带gp...

2019-02-11 13:56:59 1883 2

原创 PAT (Advanced Level) Practise 1003 Emergency(SPFA+DFS)

1003. Emergency (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAs an emergency rescue team leader of a city, yo

2016-08-16 11:13:50 641

原创 CodeForces 670E Correct Bracket Sequence Editor(list和迭代器函数模拟)

E. Correct Bracket Sequence Editortime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRecently Polycarp starte

2016-08-14 09:58:22 718

原创 清橙 A1206 小Z的袜子(莫队算法)

A1206. 小Z的袜子时间限制:1.0s   内存限制:512.0MB  总提交次数:1357   AC次数:406   平均分:46.75将本题分享到:         查看未格式化的试题   提交   试题讨论试题来源  2010中国国家集训队命题答辩问题描述  作为一个生活散漫的人,小Z

2016-08-12 16:40:06 720

原创 NBUT 1457 Sona(莫队算法+离散化)

[1457] Sona时间限制: 5000 ms 内存限制: 65535 K问题描述Sona, Maven of the Strings. Of cause, she can play the zither.Sona can't speak but she can make fancy music. Her music can attack, heal,

2016-08-12 15:53:57 753

原创 OpenCV学习笔记——点击显示鼠标坐标

点击显示鼠标显示坐标,再次点击时上一次的坐标的会消失……#include#includevoid on_mouse(int event, int x, int y, int flags, void* img){ CvFont font; cvInitFont(&font, CV_FONT_HERSHEY_SIMPLEX, 0.5, 0.5, 0, 1, CV_AA); if (ev

2016-08-11 17:52:51 1204

原创 POJ 1573 Robot Motion(BFS)

Robot MotionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 12856 Accepted: 6240DescriptionA robot has been programmed to follow the instructions

2016-08-11 11:42:07 507

原创 NOJ 1651 Red packet(二分)

[1651] Red packet时间限制: 1000 ms 内存限制: 65535 K问题描述New Year is coming! Our big boss Wine93 will distribute some “Red Package”, just like Alipay and Wechat.Wine93 has m yuan, he decides to

2016-08-11 00:07:24 675

原创 HDU 3038 How Many Answers Are Wrong(带权并查集)

How Many Answers Are WrongTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6046    Accepted Submission(s): 2287Problem Description

2016-08-10 18:18:54 476

原创 POJ 1988 Cube Stacking(带权并查集)

Cube StackingTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 23678 Accepted: 8299Case Time Limit: 1000MSDescriptionFarmer John and Betsy are pla

2016-08-10 17:42:48 508

原创 POJ 1703 Find them, Catch them(种类并查集)

Find them, Catch themTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 41463 Accepted: 12753DescriptionThe police office in Tadu City decides to say end

2016-08-10 16:26:01 561

原创 POJ 3255 Roadblocks(A*求次短路)

RoadblocksTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 12167 Accepted: 4300DescriptionBessie has moved to a small farm and sometimes enjoys returni

2016-08-09 13:11:20 604

原创 NBOJv2 1022 短信篮球(种类并查集)

Problem 1022: 短信篮球Time Limits:  1000 MS   Memory Limits:  65536 KB64-bit interger IO format:  %lld   Java class name:  MainDescription      宁工正举行一年一度的篮球比赛,小屌因有事不能来看比赛

2016-08-09 11:06:13 757

原创 POJ 1182 食物链(种类并查集)

食物链Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 63592 Accepted: 18670Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动

2016-08-09 00:24:59 674

原创 HDU 2594 Simpsons’ Hidden Talents(KMP的Next数组应用)

Simpsons’ Hidden TalentsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6888    Accepted Submission(s): 2461Problem DescriptionH

2016-08-07 22:21:20 533 1

原创 HDU 2795 Billboard(线段树的另类应用)

BillboardTime Limit: 20000/8000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19225    Accepted Submission(s): 8042Problem DescriptionAt the entranc

2016-08-07 22:06:01 480 5

原创 POJ 2777 Count Color(线段树染色,二进制优化)

Count ColorTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 42940 Accepted: 13011DescriptionChosen Problem Solving and Program design as an optional co

2016-08-07 15:52:02 534

原创 HDU 1394 Minimum Inversion Number(线段树/树状数组求逆序数)

Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17737    Accepted Submission(s): 10763Problem Description

2016-08-07 00:38:41 524

原创 POJ 1419 Graph Coloring(最大独立集/补图的最大团)

Graph ColoringTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4893 Accepted: 2271 Special JudgeDescriptionYou are to write a program that tries to

2016-08-06 14:59:55 619

原创 HDU 2191 悼念512汶川大地震遇难同胞——珍惜现在,感恩生活(多重背包模版题)

悼念512汶川大地震遇难同胞——珍惜现在,感恩生活Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24805    Accepted Submission(s): 10493Problem Description

2016-08-05 13:05:43 448

原创 OpenCV学习笔记——视频的边缘检测

使用Canny算子进行边缘检测,并分开输出到三个窗口中,再给每一个窗口添加文字代码#include"cv.h"#include"highgui.h"//读入视频并转换为灰度图再作边缘检测//并分开三个窗口输出IplImage *frame,*gray,*canny,*uni,*temp;int wid=-1, hei=-1;int main(void){ CvCapture

2016-08-04 17:47:08 2869

原创 HDU 2159 FATE(二维费用背包)

FATETime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11908    Accepted Submission(s): 5645Problem Description最近xhd正在玩一款叫做FATE的游戏,

2016-08-03 10:48:37 429

原创 UVa 11624 Fire!(BFS)

Fire!Time Limit: 5000MS Memory Limit: 262144KB 64bit IO Format: %lld & %lluDescriptionJoe works in a maze. Unfortunately, portions of the maze have caught on fire,

2016-08-02 00:15:30 428

原创 暑假训练round 3 题解

今天做题运气出奇的好,除了几处小错误调试之后忘记改掉了……最后还AK了……虽然题目不难,学长也说是福利局,但是对个人的鼓励作用还是挺大的……至此暑假训练就结束了,也算没有遗憾……。题解如下:Problem A: 苦逼的MCATime Limits:  1000 MS   Memory Limits:  65536 KB64-bit interger IO f

2016-07-31 21:41:30 599

原创 Educational Codeforces Round 15 C. Cellular Network(二分)

C. Cellular Networktime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given n points on the straight

2016-07-31 11:36:03 699

原创 HDU 1044 Collect More Jewels(BFS+DFS)

Collect More JewelsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6713    Accepted Submission(s): 1558Problem DescriptionIt is

2016-07-29 18:00:45 499

原创 NBOJv2 Problem 1009 蛤玮的魔法(二分)

Problem 1009: 蛤玮的魔法Time Limits:  1000 MS   Memory Limits:  65536 KB64-bit interger IO format:  %lld   Java class name:  MainDescription为了成为魔法少女,蛤玮正在学习画魔法阵,他首先画了一个正n边形

2016-07-28 23:02:51 640

原创 HDU 1016 Prime Ring Problem(经典DFS+回溯)

Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42600    Accepted Submission(s): 18885Problem DescriptionA rin

2016-07-27 17:57:02 427

原创 HDU 2181 哈密顿绕行世界问题(经典DFS+回溯)

哈密顿绕行世界问题Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3105    Accepted Submission(s): 1918Problem Description一个规则的实心十二面体,它的 2

2016-07-27 16:22:47 837

原创 OpenCV学习笔记——滑动条开关

由于opencv库中并没有专门为开关而设的函数,可以用滑动条做开关代码:#include#includeint g_switch_value = 0;IplImage *img;void switch_off_fcuntion();void switch_on_function();void switch_callback(int position){ if (!posit

2016-07-27 14:46:18 714

原创 POJ 3321 Apple Tree(DFS序+线段树单点修改区间查询)

Apple TreeTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 25904 Accepted: 7682DescriptionThere is an apple tree outside of kaka's house. Every autumn,

2016-07-26 14:04:37 714

原创 暑假训练round2 D: 好序列(Manacher)

Problem 1061: 好序列Time Limits:  1000 MS   Memory Limits:  65536 KB64-bit interger IO format:  %lld   Java class name:  MainDescription杨神觉得好的序列需要符合这两个条件1.这段序列可以平均分成三段

2016-07-25 15:24:55 651

原创 HDU 1698 Just a Hook(线段树区间替换)

Just a HookTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 27359    Accepted Submission(s): 13593Problem DescriptionIn the game

2016-07-25 14:22:46 475

原创 HDU 5521 Meeting(虚拟节点+最短路)

MeetingTime Limit: 12000/6000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1358    Accepted Submission(s): 435Problem DescriptionBessie and her f

2016-07-24 17:57:52 546

原创 NBOJv2 1034 Salary Inequity(DFS序+线段树区间更新区间(最值)查询)

Problem 1034: Salary InequityTime Limits:  10000 MS   Memory Limits:  200000 KB64-bit interger IO format:  %lld   Java class name:  MainDescriptionThere is a large co

2016-07-22 17:46:11 521

空空如也

空空如也

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

TA关注的人

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