feat: add Clash/IOPaint/MongoDB Standalone/OpenCut & README
This commit is contained in:
8
src/io-paint/.env.example
Normal file
8
src/io-paint/.env.example
Normal file
@@ -0,0 +1,8 @@
|
||||
# Docker Registry 镜像地址(可选)
|
||||
DOCKER_REGISTRY=docker.io
|
||||
|
||||
# 构建版本
|
||||
BUILD_VERSION=latest
|
||||
|
||||
# Hugging Face 镜像端点(可选,用于中国大陆用户)
|
||||
# HF_ENDPOINT=https://hf-mirror.com
|
||||
@@ -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
54
src/io-paint/README.zh.md
Normal 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 项目的许可信息。
|
||||
Reference in New Issue
Block a user