0%

To suppress TensorFlow warnings (in a single python file, or in the __init__.py of a package that depends on tensorflow):
[credit]

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# replace `import tensorflow as tf` with this line
# or insert this line at the beginning of the `__init__.py` of a package that depends on tensorflow
tf = import_tensorflow()

# may put this function in another utility file
def import_tensorflow():
# Filter tensorflow version warnings
import os
# https://stackoverflow.com/questions/40426502/is-there-a-way-to-suppress-the-messages-tensorflow-prints/40426709
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'}
import warnings
# https://stackoverflow.com/questions/15777951/how-to-suppress-pandas-future-warning
warnings.simplefilter(action='ignore', category=FutureWarning)
warnings.simplefilter(action='ignore', category=Warning)
import tensorflow as tf
tf.get_logger().setLevel('INFO')
tf.autograph.set_verbosity(0)
import logging
tf.get_logger().setLevel(logging.ERROR)
return tf
Read more »

img

Scrum Log

实验室

  • 手画轨迹实验(100)+50+10
  • 真人图像渲染器(150)+100
  • 周报(100)
  • 文档(200)
  • 起始点实验降噪(100)
  • 全身动态模型(500)
  • 读论文(100)
  • 找秋季老板(500)
  • 报税(100,by 7.15)

实习

  • 给fedex打电话1.800.463.3339取快递(10)
  • 改PPT(100)
  • 树实验(150)
  • 带边的树实验(200)
  • 读论文(100)

General

  • 连续7天12:30am前睡觉(500)
  • 连续7天每天有效工作时长>=8h(200)+1+1+0
  • 连续7天每天productivity得分超过200(500)+1+1+0
  • 连续7天日均读论文数>=1(300)
  • 体重下降到125斤(200)
  • 体重下降到120斤(400)
  • 连续7天每天看手机不超过2h(200)
  • 连续7天每隔一天跑一次步(200)
  • 连续4个周日给爸爸打电话(500)
  • 洗衣服(10)

7.13 (Mon)

Read more »

"Instead of trying to win something you never understood
Just play the game you know eventually you will you both look good
It’s silly to pretend to have something you don’t own

Instead of acting crazy chasing things that make you mad
Keep your heart ahead, it’ll lead you back to what you have
With every step you are closer to the place you need to be"

Read more »

Suppose we have 2 github IDs, working account userA and personal account userB. This blog shows how to setup a git repo to commit & push with the proper identity.

SSH setups

For password-free github access, we use SSH (Secure Shell, basically a protocol for remote communication) to push to / pull from github repos. For identity verification, you will have a public key stored in github, and a private key stored locally. Some algorithm (RSA) will check if these two keys agree with each other.

For multiple github accounts, we need to generate the public/private key pair for each account:

1
2
3
4
5
6
7
ssh-keygen				# enter ~/.ssh/id_rsa_userA, <empty>, <empty>
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa_userA

ssh-keygen # enter ~/.ssh/id_rsa_userB, <empty>, <empty>
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa_userB

Then, add the generated public keys to github for each account:

Read more »

Install Hexo

1
2
npm install -g hexo-cli
export PATH=~/.npm-global/lib/node_modules/hexo/bin:$PATH

Create root Hexo folder

1
2
3
mkdir hexo_dir
cd hexo_dir
hexo init

Configure Git Repo

Create a github repo <username>.github.io and edit _config.yml:

1
url: <username>.github.io
Read more »

Hexo’s built-in asset mechanism is hard to use. This post shows how to painlessly insert images when editing Hexo posts with Typora.

Typora

In Preferences:

image-20200710205313639

File structure:

1
2
3
4
5
6
hexo/
source/
_posts/
some-post.md
some-post/
image.png

In some-post.md:

1
![alt](some-post/image.png)
Read more »