![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
cheatsheet
luputo
这个作者很懒,什么都没留下…
展开
-
Pytorch Cheatsheet
Pytorch笔记torch.no_grad()CLASS torch.autograd.no_grad[SOURCE]Context-manager that disabled gradient calculation.Disabling gradient calculation is useful for inference, when you are sure that you wi...原创 2019-06-11 17:46:58 · 929 阅读 · 0 评论 -
Python cheatsheet
Python cheatsheetpandasdf = pd.read_csv('path') # read .csvdf.to_csv('path') # write .csv df.to_csv('path',header=True,index=True),header是列名,index是数字行名,两者默认都是True,将header设为False,第一行会称为列名,将index设为Tr...原创 2019-06-11 17:47:22 · 587 阅读 · 0 评论 -
OpenCV cheatsheet
OpenCV cheatsheet打开摄像头请使用opencv > 3.3.1.11版本 while True: ret, frame = cap.read() cv2.imshow('frame', frame) # 一个窗口用以显示原视频 if cv2.waitKey(1) & 0xFF == ord('q'): ...原创 2019-06-11 17:47:47 · 967 阅读 · 0 评论 -
Linux Cheatsheet
Linux笔记使用命令替换文本中的字符串sed -i ‘s/original/new/g’ file.txtExplanation:sed = Stream EDitor-i = in-place (i.e. save back to the original file)The command string:s = the substitute commandoriginal ...原创 2019-06-11 17:48:58 · 2035 阅读 · 1 评论 -
Manjaro cheatsheet
Manjaro cheatsheet命令功能pacman -Syy同步包数据库pacman -Syu同步软件库并更新系统到最新状态pacman -S package_name1 package_name2安装或升级pacman -S extra/package_name选择版本(比如extra和testing)pacman -S testing...原创 2019-06-11 17:49:45 · 275 阅读 · 0 评论