自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 Python基础之继承Inheritance

# python面对对象的继承指的是多个类之间的所属关系,即子类默认继承父类的所有属性和方法class a(object): def __init__(self): self.num = 1 def info_print(self): print(self.num)class b(a): # 继承 passresult = b()result.info_print()# 单继承与多继承class Master(object):.

2021-06-28 16:01:04 198

原创 Python基础之魔法方法MagicMethod

# __x__()的函数叫做魔法方法class Washer(): # 1. __init__(): 初始化对象, 并可以对不同的对象设置不同的初始化属性 def __init__(self, width, height): self.width = width self.height = height # __str__() :输出方法中return的数据 def __str__(self): return '这是洗衣.

2021-06-25 16:46:25 159

原创 Python基础之面向对象ObjectOriented

"""class 类名(): 代码"""# 1. 创建类class Washer(): def wash(self): # self指的是调用该函数的对象 print('能洗衣服') print(self) def print_info(self): print(f'width is {self.width}, height is {self.height}')# 2.创建对象 对象名 = 类名()haier = Wa

2021-06-19 14:39:10 143

原创 Python基础之文件操作FileOperate

# 打开文件 open(name, mode)f = open('test.txt', 'w')# 读写操作 write() read()f.write('aaa')# 关闭 close()f.close()"""测试目标1. 访问模式对文件的影响2. 访问模式对write()的影响3. 访问模式是否可以省略"""# r: 如果文件不存在则报错,不支持写入操作,表示只读f = open('test.txt', 'r')f.close()# w:如果文件不存在则新建文件, 支

2021-06-19 11:14:38 248

原创 骨骼动作数据集(补充中)

NTU RGB+D" Dataset and “NTU RGB+D 120” DatasetThis page introduces two datasets: “NTU RGB+D” and "NTU RGB+D 120.数据很多,对动作的分类十分仔细的数据集,可以用来进行动作识别,里面含有3D骨骼数据网址:http://rose1.ntu.edu.sg/Datasets/actionRecognition.aspSBU Kinect Interaction双人交互数据集,有/无噪音数据.

2021-06-11 00:14:58 2415

原创 计算机图形学论文收录

siggraph,siggraph asia paperhttp://kesen.realtimerendering.com/sigchi待补全CVPR待补全

2021-06-09 11:27:46 107

原创 Python基础之高阶函数

students = [{'name': 'tom', 'age': 20}, {'name': 'tim', 'age': 12}, {'name': 'kim', 'age': 22}]# 按照Name升序排序students.sort(key=lambda x: x['name'])print(students)# 按照name降序排列students.sort(key=lambda x: x['name'], reverse=True)

2021-05-31 20:51:12 46

原创 Python入门之匿名函数lambda

# 如果一个函数有一个返回值,并且只有一句代码,可以使用lambda简化# 形式:lambda 参数列表 : 表达式def fun1(): return 1def add(a, b): return a + bfunc2 = lambda : 1 # 无参数形式print(func2) # 打印出的为lambda的内存地址print(func2()) # 打印出的为返回值func3 = lambda a, b : a + b # 有参数形式print(fun

2021-05-31 14:43:32 90

原创 Python函数初级应用之学员系统管理

# 定义功能界面函数def info_print(): print('select function please') print('1.add') print('2.delete') print('3.modify') print('4.search') print('5.show') print('6.exit') print('-' * 20)# 等待存储所有学员的信息info = []# 添加学员信息的函数def ad

2021-05-29 20:00:01 79

原创 Python入门之函数基础

# 1.搭建整体框架# 2.确定选择功能界面:显示余额 存款 取款def sel_func(): """说明文档的位置,显示函数""" print('显示余额') print('存款') print('取款')def add_num(a, b): print(a + b)print(add_num(1, 2))print('log in successfully!')sel_func()print('余额10000')sel_func()p.

2021-05-27 16:59:28 124

原创 Python入门之公共方法PublicMethod

str1 = 'aa'str2 = 'bb'list1 = [1, 2]list2 = [10, 20]t1 = (1, 2)t2 = (10, 20)dict1 = {'name': 'python'}dict2 = {'age': 20}# 1.len()print(len(dict1))# 2.del /del()del list1[0]print(list1)del dict1['name']print(dict1)# 3.max()/min()str1 = .

2021-05-27 16:58:23 368

原创 Python入门之公共操作PublicOperate

# +/ */ in/ not instr1 = 'aa'str2 = 'bb'list1 = [1, 2]list2 = [10, 20]t1 = (1, 2)t2 = (10, 20)dict1 = {'name': 'python'}dict2 = {'age': 20}# + : 合并 , 支持字符串,列表,元组print(str1 + str2)print(list1 + list2)print(t1 + t2)# print(dict1 + dict2) er.

2021-05-27 16:57:35 91

原创 Python入门之字典dictionary

# 字典不支持下标,以键值对形式出现, 各个键值对之间用逗号隔开dict1 = {'name': 'Tom', 'age': 20, 'gender': '男'} # 有数据的字典dict2 = {} # 空字典dict3 = dict()print(dict1)print(type(dict1))print(type(dict3))# 字典常见操作# 1.adddict1['id'] = 110print(dict1)dict1['name'] = 'Rose'print(d.

2021-05-27 16:56:12 92

原创 Python入门之集合set

# 1.创建集合用{}或者set(),但是创建空集合只能用set(),{}用来创建空字典s1 = {1, 2, 3, 4, 5, 6} # 集合不支持下标的操作print(s1)print(type(s1))s2 = {1, 1, 3, 2, 4, 5, 5} # 带有重复数据print(s2) # 集合数据具有去重功能s3 = set('abcdefg')print(s3)print(type(s3))s4 = set()print(s4)print(type(s4))s5.

2021-05-27 16:55:14 51

原创 Python入门之元组tuple

t1 = (10, 20, 30) # 定义多个数据元组t2 = (10, ) # 单个数据元组t3 = (10) # 非元组类型print(type(t1))print(type(t2))print(type(t3))# 元组的常见操作,元组数据不支持修改,只支持查找t4 = ('aa', 'bb', 'cc', 'dd')# 1、按照下标查找数据print(t4[0])# 2、index()查找print(t4.index('aa'))# 3、count()统计某个数据在当前.

2021-05-27 16:54:29 242

原创 cycleGAN

前两天阅读motion retargeting的文章中使用到了cycleGAN网络,所以看了一下原论文和代码,记录了一下笔记解决非配对(Unpaired)问题 --> 不能找到完全一样的两种风格的图片选用cycle结构,两个generator和两个discriminator,网络训练的目标:F(G(x))=x , G(F(y)) = yproblem : G: X-->Y 非配对数据可能使结果发生变化 目的: cycle consistence eg.:E...

2021-05-16 10:52:07 113

原创 计算机图形学(Lec7)

visibility/occlusion - z bufferingPainter's Algorithm- Paint from back to front, overwrite in the same framebuffer距离观测者举例 —— 深度shortcoming - 相叠时无法计算(如上图)z - bufferideastore current min z-value for each sample(pixel) Needs an addition bu...

2021-05-13 15:13:44 141

原创 计算机图形学(Lec6)

Antialiasing(反走样/抗锯齿)artifacts(due to Undersampling)①Jaggies - sampling in space② moire parttern(莫尔条纹) - undersampling images③wagon wheel effect - sampling in time如何防止失真现象的产生? ①增加采样频率 ②加滤波器,截掉高频分量Antialiasing by supersampling ==&gt...

2021-05-13 14:30:51 129

原创 计算机图形学(Lec5)

Aspect ratio = width/height由图易得 tan(fovY/2) = t/|n| aspect = n/tWhat is MVP?Model transformationView transformationProjection transformation -- Orthographic projection(cuboid to "canonial" cube[-1,1]3) -- Perspective projection(frust...

2021-05-11 20:07:45 105

原创 计算机图形学(Lec4)

View/Camera Tranformation(Model/View Transformation)Define the camera first - position - Look-at/gaze direction - Up direction相机position (0, 0, 0) up at Y , Look at -z Projection Transformation- Orthographic Projection (正交投影) - Perspective Proje...

2021-05-10 15:19:45 104

原创 计算机图形学(Lec3)

2D transformationsScale Rotation 另外,有,进而可得 Translation(仿射变换,将平移变换整合到矩阵中)3D transformationsScale Rotation 可以得到 Translation Ofen used in flight simulators: roll patch yaw Rodrigue's Rotation Formula 参考链接:https://www.bilibili.com/video/BV1X7411.

2021-05-10 14:39:44 59

原创 Top-1错误率和Top-5错误率的区别

今天阅读image captioning的一篇论文中提到了Top-1错误率和Top-5错误率Top-1 错误率是指概率最大的预测结果不在正确标签中的概率Top-5错误率是指概率前五的预测结果不在正确标签中的概率Top-1正确率和Top-5正确率同理...

2021-04-10 20:18:47 433

原创 Python报错ModuleNotFoundError: No module named ‘tensorflow.contrib‘ 的解决

在GitHub上下载的image captioning的代码,运行时发现报错为ModuleNotFoundError: No module named 'tensorflow.contrib'在CSDN和GitHub上查询后发现是TensorFlow版本过高的原因,解决方法如下:1、拆卸现在的TensorFlow v2在cmd窗口输入pip install tensorflow2、Python3.8 下 安装 TensorFlow 1.14pip install --upgrade https:/

2021-04-09 20:30:16 1351

原创 关于图像自动描述(image captioning)和图像自动标注(automatic image annotation)的区别

关于图像自动描述(image captioning)和图像自动标注(automatic image annotation)的区别每次在知网搜索“图像自动描述”关键词时,总会出现“图像自动标注”的相关文章,所以寻找了一下他们之间的相关区别区别1:生成的文本不同图像自动描述(image captioning)是生成图像的描述语句图像自动标注(automatic image annotation)则是生成图像中目标的关键字区别2:所使用的网络不同image captioning 中经常使用

2021-04-07 20:26:19 920 1

空空如也

空空如也

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

TA关注的人

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