Posts

  • VideoReTalking 基于音频驱动的嘴型同步头像视频编辑

    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...
  • conda

    Usage # 创建环境 conda create -n envname python=3.10 # 激活环境 conda activate envname # 列出环境 conda info -e # 删除环境 conda env remove -n envname
  • RAD-NeRF

    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...
  • FFmpeg

    合并音视频 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))',...
  • AI

    LLM 大语言模型(LLM)是基于海量文本数据训练的深度学习模型。它不仅能够生成自然语言文本,还能够深入理解文本含义,处理各种自然语言任务,如文本摘要、问答、翻译等。 https://baike.baidu.com/item/大语言模型/62884793 RAG 检索增强生成(RAG)指的是在使用LLMs回答问题之前,从外部知识库中检索相关信息。 Retrieval-Augmented Generation for Large Language Models: A Survey ...
  • python 设置镜像源

    pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  • 设置 xrdp 安全连接远程 linux 服务器

    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 :::* ...
  • scp 命令后台执行

    当拷贝一个很大的文件的时候可以使 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...
  • go mod 使用私有仓库

    使用 go env 配置私有仓库地址 go env -w GOPRIVATE=gitlab.test.com 如果私有仓库是 http 的,使用以下命令 go env -w GOINSECURE=gitlab.test.com 使用 git config 替换拉取地址 git config --global url."http://user:pass@gitlab.test.com/".insteadOf "http://gitlab.test.com/"
  • 使用 frp 将请求转发到内网的 https

    问题 使用 frps 转发 https,在 nginx 中这样配置是不起作用的。 proxy_pass https://127.0.0.1:7043 因为对于 SSL, frps 无法获取 hostname,即使设置了 proxy_set_header Host $host; 可以设置 proxy_ssl_name,使 frps 可以识别正确的 host 解决方案 frps.toml bindPort = 7000 auth.token = "123456" vhostHT...