Umbrellalalalala's blog

Enjoy the symphony of the storm.


  • Home

  • Categories

  • Tags

  • Archives

  • About

wxPython入门笔记(一)——一个图像处理demo带你轻松上手

Posted on 2019-04-02 | In wxPython

wxPython是用python实现界面的东西,本文由简单图像处理demo带你快速上手,代码来自我的基于深度学习的漫画自动上色程序。模型训练参考他人成果,在此注明链接:deepcolor。当然,本文不涉及深度学习模块,只有wxPython demo。

wxPython程序结构

不唯一,以下只是我采用的写法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import wx

class MyFrame(wx.Frame):
def __init__(self):
# 界面窗口初始化,包含界面名字和尺寸
wx.Frame.__init__(self, None, title='这个程序的名字', size=(高, 宽))
...

def ...

...

if __name__ == '__main__':
app = wx.App()
frm = MyFrame()
frm.Show()
app.MainLoop()
Read more »

编程训练[C语言]——避免不该有的罚时?试试背诵几个常见的动态规划程序

Posted on 2019-02-28 | In algorithm contest

昨天晚上回顾了以前在onenote上记的动态规划笔记,发现很多程序都有相似之处,且最近两天写的动态规划程序都没有一遍AC。所以将这两天写的动态规划程序总结至此,以便背诵、默写用(这种题被罚时实在太亏)。

背诵的时候要特别注意dp数组的功能和其递推公式。

阅读指南

六道题分别是钱币兑换、0-1背包、完全背包、最长公共子序列、最长上升子序列、划分数。

前两题较简单,从第三题开始有公式推导,二和三题末尾有技巧总结。


一、hdu1284 钱币兑换问题

先来道最简单的背诵。

Read more »

C语言——基础查漏补缺(一)

Posted on 2019-02-15 | In programming languages

C语言是博主最先学的语言,但接触机器学习以来,主要编程语言变成了python,为了防止对C语言的淡忘,利用谭浩强C语言系列进行查漏补缺,进行易忘概念总结。

基础知识

1、一个C程序的执行是从本程序的main函数开始,到main函数结束;
2、C语言本身没有输入输出语句(只有输入输出函数);
3、C语言规定,在源程序中main函数的位置可以任意;
4、一个C语言程序是由:

5、C语言的源程序必须通过编译和链接后,才能被计算机执行;
6、在C语言源程序中,一个变量代表内存中的一个存储单元;
7、在Turbo C环境中用RUN命令运行一个C程序时,所运行程序的后缀是.exe;

Read more »

Notice of Deferred Update 关于推迟更新的通知

Posted on 2019-01-06 | In Notice

Notice of Deferred Update

As I said last year, you could expect me begin to update this blog in early 2019. But it can’t start as scheduled because I’m going to spend my winter vacation in a place without GitHub, Google and so on. The reason why Github is unreachable is very complicated, and I can’t say more. You just need to know I will begin to update this blog at the end of February. And during this period You could pay attention to my CSDN blog (https://blog.csdn.net/umbrellalalalala). Thank you for your attention.

关于推迟更新的通知

正如我去年所说,我将在2019年年初开始更新我的Github博客,但很抱歉我要推迟更新时间了。我将去一个没有Github和Google等的地方度过我的寒假,至于绝对无法访问Github和Google的原因有点敏感,不便多说。在此期间,我将使用CSDN 博客 (https://blog.csdn.net/umbrellalalalala) ,在二月底回校后,我会第一时间将上面发布的博客移植到Github上。感谢您的关注。

Lagrange Multiplier Method

Posted on 2018-09-17 | In mathematics

Lagrange Multiplier Method

Today, I learned a method of finding the conditional extremum of the two-variables function, called the Lagrange multiplier method.

How to use Lagrange Multiplier Method

When we need to know the unconditional extremum of a two-variables, calculating partial derivatives and second derivatives will be useful.

But what if I add a condition $\varphi(x,y)=0$?

To solve the problem about the extremum of $f(x,y)$ under $\varphi(x,y)=0$, we can construct the Lagrange Function:

Then solve this equation:

Read more »

First Blog On This Site

Posted on 2018-09-16 | In diary

I have spent the whole day. Finally build this blog based on GitHub and Hexo. I used CSDN only before.

I am preparing for the postgraduate entrance examination at the end of the year. I’m very busy. So you can expect me begin to update this blog in early 2019.

I will publish all my academic experience here. Maybe I haven’t got any scientific achievements yet. But we can learn and progress together.

Umbrellalalalala

分享Umbrellalalalala的学术文章

6 posts
6 categories
6 tags
© 2019 Umbrellalalalala
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4