huggingface_mirror


## 1. 安装工具
pip install -U huggingface_hub
# 可选:高速传输插件
pip install hf_transfer

## 2. 设置 HF_ENDPOINT(hf-mirror)
# Linux/Mac
export HF_ENDPOINT=https://hf-mirror.com
# Windows CMD
set HF_ENDPOINT=https://hf-mirror.com
# Windows PowerShell
$env:HF_ENDPOINT = "https://hf-mirror.com"

## 3. huggingface-cli download 常用命令

### 下载整个模型仓库
# --resume-download 断点续传

huggingface-cli download Qwen/Qwen2-7B-Instruct --resume-download --local-dir ./Qwen2-7B-Instruct

#只下载单个文件(如 GGUF)
huggingface-cli download unsloth/Qwen2.5-7B-Instruct-GGUF Qwen2.5-7B-Instruct-Q4_K_M.gguf --local-dir ./models

#需要授权的模型(Llama 等,先在 hf 官网申请权限)
huggingface-cli download meta-llama/Llama-3.1-8B-Instruct --token hf_xxxx --resume-download --local-dir ./llama

## 4. hf models ls 搜索示例
# 简单关键词搜索
hf models ls --search qwen --limit 10

# 搜索GGUF量化模型,按下载量排序
hf models ls --search GGUF --sort downloads --limit 15

# 指定作者 + 任务管道(text-generation文本大模型)
hf models ls --author Qwen --pipeline-tag text-generation --limit 8

# 参数范围筛选:6B ~ 70B
hf models ls --num-parameters min:6B,max:70B --search GGUF --limit 10

# 只搜非 gated 公开模型
hf models ls --search LORA --no-gated --sort likes --limit 10

## 5. 查看模型仓库内文件(查到模型后)
hf models ls Qwen/Qwen2.5-7B-Instruct -R

AI-TTS-TEST-测试

#TEST-kokoro
docker run --rm -p 8880:8880 ghcr.io/hsiang-han/kokoro-fastapi-zh-cpu:latest
#Model warmed up on cpu: kokoro_v1
#Running on CPU
#103 voice packs loaded
#Beta Web Player: http://0.0.0.0:8880/web/
#or http://localhost:8880/web/

#TEST-Coqui
# Voice Synthesis Project with Coqui TTS and FastAPI
# https://github.com/zlKingado/tts-web-api/tree/main
# docker run --rm -p 5001:5001 -v ${PWD}/cached_audio:/app/cached_audio tts-api-cpu

AI-语音转换-TTS

标贝科技
https://www.data-baker.com/tts.html#/specs/compose/online

 

Coqui TTS 项目介绍
Coqui 文本转语音(Text-to-Speech,TTS)是新一代基于深度学习的低资源零样本文本转语音模型,具有合成多种语言语音的能力。该模型能够利用共同学习技术,从各语言的训练资料集转换知识,来有效降低需要的训练资料量。

这个模型库现在已经在GitHub上开源,并有高达 20.5K+ 的star量。似乎和以前讲过的Mozilla 的 TTS 有着千丝万缕的联系,但是如今Mozilla TTS 已经停止更新,而 Coqui TTS 更新稳定,是目前少数几个更新比较稳定的开源语音库。

coqui官网:https://coqui.ai/

开源地址:https://github.com/coqui-ai/TTS

 

DeepFaceLive

DeepFaceLive
https://github.com/iperov/DeepFaceLive

实时视频换脸,

AiWipeVideo-Stylegan2

generators-with-stylegan2
litenn-apps

seeprettyface-face_editor

stylegan

Video-Auto-Wipe

====
tianshou
https://github.com/thu-ml/tianshou

====

docker pull paddlepaddle/paddle:2.1.2

docker run –name paddle -it -v /apnode/paddle:/paddle registry.baidubce.com/paddlepaddle/paddle:2.1.2-jupyter /bin/bash

 

docker pull paddlepaddle/paddle:1.5.2-gpu-cuda8.0-cudnn7

docker run –name paddle8 -it -v /apnode/paddle:/paddle registry.baidubce.com/paddlepaddle/paddle:1.5.2-gpu-cuda8.0-cudnn7 /bin/bash