{"id":28578407,"url":"https://github.com/xlite-dev/xlite-cli","last_synced_at":"2025-06-11T01:10:08.600Z","repository":{"id":285330362,"uuid":"957741563","full_name":"xlite-dev/xlite-cli","owner":"xlite-dev","description":"The cli version of lite.ai.toolkit ","archived":false,"fork":false,"pushed_at":"2025-04-09T09:57:11.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-04-09T10:37:12.484Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xlite-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-31T03:34:16.000Z","updated_at":"2025-04-09T09:57:16.000Z","dependencies_parsed_at":"2025-04-01T07:31:46.454Z","dependency_job_id":null,"html_url":"https://github.com/xlite-dev/xlite-cli","commit_stats":null,"previous_names":["xlite-dev/xlite-cli"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlite-dev%2Fxlite-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlite-dev%2Fxlite-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlite-dev%2Fxlite-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlite-dev%2Fxlite-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xlite-dev","download_url":"https://codeload.github.com/xlite-dev/xlite-cli/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xlite-dev%2Fxlite-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178542,"owners_count":22817389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-11T01:10:04.789Z","updated_at":"2025-06-11T01:10:08.550Z","avatar_url":"https://github.com/xlite-dev.png","language":"C++","readme":"![lite-ai-toolkit](https://github.com/user-attachments/assets/11568474-57e3-4ef7-96c0-d2ce7028bb5f)\n\n\u003cdiv align='center'\u003e\n  \u003cimg src=https://img.shields.io/badge/Linux-pass-brightgreen.svg \u003e\n  \u003cimg src=https://img.shields.io/badge/Device-GPU/CPU-yellow.svg \u003e\n  \u003cimg src=https://img.shields.io/badge/ONNXRuntime-1.17.1-turquoise.svg \u003e\n  \u003cimg src=https://img.shields.io/badge/MNN-2.8.2-hotpink.svg \u003e\n  \u003cimg src=https://img.shields.io/badge/TensorRT-10-turquoise.svg \u003e\n\u003c/div\u003e\n\n\u003cdiv align='center'\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/5b28aed1-e207-4256-b3ea-3b52f9e68aed' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/28274741-8745-4665-abff-3a384b75f7fa' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/c802858c-6899-4246-8839-5721c43faffe' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/20a18d56-297c-4c72-8153-76d4380fc9ec' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/f4dd5263-8514-4bb0-a0dd-dbe532481aff' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/b6a431d2-225b-416b-8a1e-cf9617d79a63' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/84d3ed6a-b711-4c0a-8e92-a2da05a0d04e' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/157b9e11-fc92-445b-ae0d-0d859c8663ee' height=\"80px\" width=\"80px\"\u003e\n  \u003cimg src='https://github.com/xlite-dev/lite.ai.toolkit/assets/31974251/ef0eeabe-6dbe-4837-9aad-b806a8398697' height=\"80px\" width=\"80px\"\u003e  \n\u003c/div\u003e\n\n## 简介\n\nxlite-cli是基于 [Lite.AI.ToolKit](https://github.com/xlite-dev/lite.ai.toolkit) 开发的命令行工具,目前支持的算法为换脸算法以及SD的文生图以及图生图功能,目前支持的框架为TensorRT具体的版本要求可以[参考](https://github.com/xlite-dev/lite.ai.toolkit/blob/main/docs/tensorrt/tensorrt-linux-x86_64.zh.md)。\n\n## 特点\n\n- **简单易用**: 命令行直接调用,可以跨语言调用动态库实现功能\n- **高性能**: 使用TensorRT框架实现高速推理,使用CUDA重写前后处理\n- **跨平台**: 目前仅支持Linux平台,后续可能会支持Windows平台\n- **多框架**: 目前仅仅支持TensorRT,后续可能会支持MNN框架便于在边缘设备上进行部署\n## 支持的功能\n\n- **换脸**:目前支持人脸选中\n- **SD**: 目前支持TXT2IMG和IMG2IMG,后续会继续添加LORA以及ControlNet等功能\n\n\n\n## 快速开始\n\n1. 从 [Releases](https://github.com/xlite-dev/lite.ai.toolkit-exe/releases) 下载最新版本（目前没考虑好如何制作可执行文件）\n   ```bash\n   wget https://github.com/xlite-dev/lite.ai.toolkit-exe/releases/download/v0.3.1/xlite-cli-linux-x86_64.tar.gz\n   ```\n\n2. 解压缩文件\n   ```bash\n   tar -xzvf xlite-cli-linux-x86_64.tar.gz\n   cd xlite-cli\n   ```\n\n3. 添加执行权限\n   ```bash\n   chmod +x xlite-cli\n   ```\n\n4. 运行可执行文件\n   ```bash\n   ./xlite-cli --help  # 查看帮助信息\n   ```\n\n5. 举例：运行换脸算法\n   ```bash\n   ./xlite-cli facechange --model_folder path/to/face_change_model --input_src source.jpg --src_index 0 --input_target target.jpg --target_index 1 --face_change_output face_change_result.jpg\n   ```\n\n### 命令行示例\n\n## 系统要求\n\n- **操作系统**: 目前支持 Linux\n- **RAM**: 至少 4GB (推荐 8GB 以上)\n- **存储空间**: 至少 10GB 可用空间\n- **GPU**: 可选，支持 CUDA 的 NVIDIA 显卡可获得更好性能\n\n## 模型下载链接\n\n| 模型类别 | 下载链接 |\n|---------|---------|\n| FaceChange | [Google Drive](https://drive.google.com/drive/folders/1iAUUr_35qkwVrhPJ6gSdbgSjahEqG-DQ?usp=sharing) |\n| SD         | [Google Drive](https://drive.google.com/drive/folders/1ol8snB_LKvLcpC3v69jY9YOsZ0m_PmVc?usp=share_link) |\n\n## 许可证\n\nGNU General Public License v3.0\n\n## 致谢\n\n感谢 [Lite.AI.ToolKit](https://github.com/xlite-dev/lite.ai.toolkit) 项目提供的优秀 AI 模型集合，以及所有开源贡献者的辛勤付出。\n\n[English Version](README_EN.md) | [日本語版](README_JA.md)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlite-dev%2Fxlite-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxlite-dev%2Fxlite-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxlite-dev%2Fxlite-cli/lists"}