会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
太晓
知识的岛屿越大,无知的海岸线越长。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
10
下一页
2022年6月22日
linux 常用命令备查
摘要: # 找程序 whereis xxxx # 查进程 ps -A | grep django # 杀进程 pkill xxxx kill -9 [pid] # 提权限 chmod 777 xxxx # 查端口使用 netstat -antlp # 查摄像头信息 v4l2-ctl -d /dev/vide
阅读全文
posted @ 2022-06-22 21:32 太晓
阅读(39)
评论(0)
推荐(0)
2022年4月29日
Conda 命令备查
摘要: 替换源 ``` # 显示所有通道 conda config --show channels # 删除所有通道 conda config --remove-key channels # 清华镜像使用帮助 https://mirror.tuna.tsinghua.edu.cn/help/anaconda
阅读全文
posted @ 2022-04-29 16:33 太晓
阅读(115)
评论(0)
推荐(0)
2022年4月24日
Python 视频抽帧
摘要: from tkinter import filedialog import os import cv2 def saveImage(video_name: str, interval: int = 60, start: int = 0, end: int = -1, output_dir: str
阅读全文
posted @ 2022-04-24 17:58 太晓
阅读(529)
评论(0)
推荐(0)
2022年3月30日
DaVinci 达芬奇快捷键
摘要: 通用 全屏 [Ctrl] + [F] [P] 暂停 [K] 播放,加速播放 [L] 倒放,加速倒放 [J] 自动调色 [Alt] + [Shift] + [C] 剪辑 添加剪辑点 [Ctrl] + [\] 调色 创建串联节点 [Alt] + [K] 创建平行节点 [Alt] + [P] 关闭单个节点
阅读全文
posted @ 2022-03-30 12:56 太晓
阅读(5860)
评论(0)
推荐(0)
2021年12月27日
Python cv2 备查
摘要: import numpy as np import cv2 fn = '图片路径' # 读取为 ndarray img: np.ndarray = cv2.imread(fn) # imread 不能读中文路径的替代方案 img: np.ndarray = cv2.imdecode(np.fromf
阅读全文
posted @ 2021-12-27 18:33 太晓
阅读(154)
评论(0)
推荐(0)
Python tkinter 选择文件
摘要: 常用 from tkinter import filedialog filedialog.askopenfilename(***options) filedialog.askopenfilenames(**options) filedialog.asksaveasfile(**options) fi
阅读全文
posted @ 2021-12-27 18:17 太晓
阅读(3863)
评论(0)
推荐(0)
2021年11月26日
合并图片和压缩包
摘要: 打开CMD copy/b 1.jpg+2.zip 3.jpg
阅读全文
posted @ 2021-11-26 07:57 太晓
阅读(206)
评论(0)
推荐(0)
2021年11月22日
Pytorch list tensor 转 onehot
摘要: def test_onehot(): v = torch.tensor([[0.1, 0.2, 0.7], [0.1, 0.6, 0.3], [0.1, 0.5, 0.4], [0.8, 0.1, 0.1], ]) print('v', v.size(), v) # 按照形状创建全0张量 resul
阅读全文
posted @ 2021-11-22 10:31 太晓
阅读(526)
评论(0)
推荐(0)
2021年11月21日
Pytorch CrossEntropyLoss 用例
摘要: 交叉熵计算损失 import torch loss_func = torch.nn.CrossEntropyLoss() v1 = torch.tensor([[0.1, 0.7, 0.2]]) v2 = torch.tensor([[0.2, 0.3, 0.5]]) v3 = torch.tens
阅读全文
posted @ 2021-11-21 14:58 太晓
阅读(65)
评论(0)
推荐(0)
2021年10月21日
Python 打包 Nuitka
摘要: Python打包exe的王炸-Nuitka - 知乎 https://zhuanlan.zhihu.com/p/133303836 1.安装gcc 2.打包测试 nuitka 你的.py 3.打包 nuitka --mingw64 --standalone --show-progress --sho
阅读全文
posted @ 2021-10-21 10:54 太晓
阅读(432)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
10
下一页
公告