上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: # 找程序 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 太晓 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 替换源 ``` # 显示所有通道 conda config --show channels # 删除所有通道 conda config --remove-key channels # 清华镜像使用帮助 https://mirror.tuna.tsinghua.edu.cn/help/anaconda 阅读全文
posted @ 2022-04-29 16:33 太晓 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 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 太晓 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 通用 全屏 [Ctrl] + [F] [P] 暂停 [K] 播放,加速播放 [L] 倒放,加速倒放 [J] 自动调色 [Alt] + [Shift] + [C] 剪辑 添加剪辑点 [Ctrl] + [\] 调色 创建串联节点 [Alt] + [K] 创建平行节点 [Alt] + [P] 关闭单个节点 阅读全文
posted @ 2022-03-30 12:56 太晓 阅读(4711) 评论(0) 推荐(0) 编辑
摘要: 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 太晓 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 常用 from tkinter import filedialog filedialog.askopenfilename(***options) filedialog.askopenfilenames(**options) filedialog.asksaveasfile(**options) fi 阅读全文
posted @ 2021-12-27 18:17 太晓 阅读(3516) 评论(0) 推荐(0) 编辑
摘要: 打开CMD copy/b 1.jpg+2.zip 3.jpg 阅读全文
posted @ 2021-11-26 07:57 太晓 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 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 太晓 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 交叉熵计算损失 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 太晓 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 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 太晓 阅读(379) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页