Files
python-ai-video/README.md
编码猿 858077692d www
2025-08-29 22:05:02 +08:00

41 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 详细使用文档写完再写!
接口文档http://127.0.0.1:8000/docs。
AI模型的本地地址 存储路径:/Users/bmy/.cache/modelscope/hub/damo
fairseq 依赖 需要 windows 先安装 vs_BuildTools.exe
decord 用 eva-decord 替代
https://github.com/dmlc/decord/issues/213
celery 是一个简单、灵活且可靠的分布式系统,主要用于处理大量消息的异步任务队列和任务调度‌
Flower WebUi 监视和调试Celery应用程序的运行情况。它提供了实时查看任务状态、参数、返回结果等功能帮助开发者更好地管理和调试分布式任务队列
uvicorn main:app --reload --port 9945
celery -A src.celery.main.app worker -l info -P eventlet
celery --broker=redis://:lb714500@127.0.0.1:6379/0 flower --port=5551
python -mvenv venv
source venv/bin/activate
windows redis 配置
redis-server.exe redis.windows.conf
# 卸载服务:
redis-server --service-uninstall
# 开启服务:
redis-server --service-start
# 停止服务:
redis-server --service-stop
# 重命名服务:
redis-server --service-name name
mac redis 配置
软件 /usr/local/Cellar/redis/7.2.4
redis的配置文件 /usr/local/etc/redis.conf
启动 redis-server /usr/local/etc/redis.conf