Posts
Jan 24, 2024
CREATE DATABASE `encrypt_test` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE TABLE `users` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`mobile` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL D...
Jan 20, 2024
Install dependency
安装依赖
git clone https://github.com/Fictionarry/ER-NeRF.git
git clone https://github.com/YudongGuo/AD-NeRF.git
git clone https://github.com/facebookresearch/pytorch3d.git
cd ER-NeRF
python3 -m venv .venv
source .venv/bin/activa...
Jan 18, 2024
Install
conda create -n video_retalking python=3.11
conda activate video_retalking
pip install torch torchvision torchaudio
pip install -i https://mirrors.aliyun.com/pypi/simple/ tb-nightly
sed -i 's/dlib==19.24.0/dlib==19.24.2/g' requirements.t...
Jan 16, 2024
Usage
# 创建环境
conda create -n envname python=3.10
# 激活环境
conda activate envname
# 列出环境
conda info -e
# 删除环境
conda env remove -n envname
Jan 16, 2024
Install
使用conda创建虚拟环境
conda create -n radnerf python=3.10
conda activate radnerf
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
# RuntimeError: CUDA error: the provided PTX was compiled with an unsup...
Jan 11, 2024
合并音视频
ffmpeg -i input.mp4 -i inputvoice.mp4 -c:v copy -c:a copy output.mp4
ffmpeg -i input.mp4 -i input.webm -c:v copy -c:a aac output.mp4
提取音频
ffmpeg -i input.mp4 output.wav
删除视频中的片段
ffmpeg -i input.mp4 -vf "select='not(between(t,36,43))',...
Jan 2, 2024
LLM
大语言模型(LLM)是基于海量文本数据训练的深度学习模型。它不仅能够生成自然语言文本,还能够深入理解文本含义,处理各种自然语言任务,如文本摘要、问答、翻译等。
https://baike.baidu.com/item/大语言模型/62884793
RAG
检索增强生成(RAG)指的是在使用LLMs回答问题之前,从外部知识库中检索相关信息。
Retrieval-Augmented Generation for Large Language Models: A Survey
...
Nov 8, 2023
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Nov 8, 2023
linux 远程桌面
安装并启动 xrdp
sudo apt install xrdp
sudo systemctl status xrdp
sudo systemctl enable xrdp
此时 xrdp 监听 0.0.0.0:3389,修改 port 监听本机IP,通过 SSH 隧道连接
$ sudo netstat -plnt | grep rdp
tcp6 0 0 ::1:3350 :::* ...
Nov 8, 2023
当拷贝一个很大的文件的时候可以使 scp 命令在后台执行来拷贝文件。
运行 scp 命令拷贝文件
scp root@aliyun:/path/to/file .
按 Ctrl + z 暂停任务
file 0% 576KB 63.3KB/s 13:51:38 ET^Z[1] + 32226 suspended (signal) scp root@aliyun:/path/to/file .
[1]+ Stopped scp root...