feat: add Clash/IOPaint/MongoDB Standalone/OpenCut & README

This commit is contained in:
Sun-ZhenXing
2025-09-26 16:21:05 +08:00
parent ed43eef637
commit 8e096fb9a7
13 changed files with 498 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
# Docker Registry 镜像地址(可选)
DOCKER_REGISTRY=docker.io
# 构建版本
BUILD_VERSION=latest
# Hugging Face 镜像端点(可选,用于中国大陆用户)
# HF_ENDPOINT=https://hf-mirror.com

View File

@@ -1,3 +1,60 @@
# IOPaint
# IOPaint (Lama Cleaner)
Ref: [Dockerfile](https://github.com/Sanster/IOPaint/blob/main/docker/GPUDockerfile)
[English](./README.md) | [中文](./README.zh.md)
IOPaint (formerly LaMa Cleaner) is a free and open-source inpainting & outpainting tool powered by SOTA AI model.
## Prerequisites
- NVIDIA GPU with CUDA support
- Docker with NVIDIA runtime support
## Initialization
1. Copy the example environment file:
```bash
cp .env.example .env
```
2. Start the service:
```bash
docker compose up -d
```
3. Access the web interface at <http://localhost:8080>
## Services
- `iopaint`: The IOPaint service.
## Configuration
The service runs on port 8080 and uses CUDA device 0 by default.
| Variable | Description | Default |
| ----------------- | -------------------------------- | ----------- |
| `DOCKER_REGISTRY` | Docker registry to use | `docker.io` |
| `BUILD_VERSION` | Build version | `latest` |
| `HF_ENDPOINT` | Hugging Face endpoint (optional) | - |
## Models
Models are automatically downloaded and cached in the `./models` directory on first use.
## GPU Support
This configuration requires an NVIDIA GPU and uses CUDA device 0. Make sure you have:
- NVIDIA drivers installed
- Docker with NVIDIA runtime support
- nvidia-docker2 package installed
## Reference
- [Dockerfile](https://github.com/Sanster/IOPaint/blob/main/docker/GPUDockerfile)
## License
Please refer to the official IOPaint project for license information.

54
src/io-paint/README.zh.md Normal file
View File

@@ -0,0 +1,54 @@
# IOPaint (Lama Cleaner)
[English](./README.md) | [中文](./README.zh.md)
IOPaint原 LaMa Cleaner是一个由最先进的 AI 模型驱动的免费开源图像修复和扩展工具。
## 先决条件
- 支持 CUDA 的 NVIDIA GPU
- 支持 NVIDIA 运行时的 Docker
## 初始化
1. 复制示例环境文件:
```bash
cp .env.example .env
```
2. 启动服务:
```bash
docker compose up -d
```
3. 在 <http://localhost:8080> 访问 Web 界面
## 服务
- `iopaint`: IOPaint 服务。
## 配置
服务默认在端口 8080 运行,使用 CUDA 设备 0。
| 变量 | 描述 | 默认值 |
| ----------------- | ------------------------- | ----------- |
| `DOCKER_REGISTRY` | 使用的 Docker 镜像仓库 | `docker.io` |
| `BUILD_VERSION` | 构建版本 | `latest` |
| `HF_ENDPOINT` | Hugging Face 端点(可选) | - |
## 模型
模型在首次使用时会自动下载并缓存在 `./models` 目录中。
## GPU 支持
此配置需要 NVIDIA GPU 并使用 CUDA 设备 0。确保你已安装
- NVIDIA 驱动程序
- 支持 NVIDIA 运行时的 Docker
- nvidia-docker2 软件包
请参考官方 IOPaint 项目的许可信息。