feat: remove GPU support and simplify to CPU-only architecture
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m35s
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m35s
This commit is contained in:
25
README.md
25
README.md
@@ -1,6 +1,6 @@
|
||||
# Real-ESRGAN API
|
||||
|
||||
REST API wrapping [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) for image upscaling. Features synchronous and asynchronous (job-based) processing with multi-target Docker builds (CPU + CUDA GPU support).
|
||||
REST API wrapping [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) for image upscaling. Features synchronous and asynchronous (job-based) processing with Docker containerization.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -9,15 +9,15 @@ REST API wrapping [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) for imag
|
||||
- **Multi-Model Support**: Multiple Real-ESRGAN models (2x, 3x, 4x upscaling)
|
||||
- **Batch Processing**: Process up to 100 images per batch request
|
||||
- **Model Management**: Download and manage upscaling models
|
||||
- **Docker Deployment**: CPU and CUDA GPU support with multi-target builds
|
||||
- **Docker Deployment**: Simplified containerized deployment
|
||||
- **Gitea CI/CD**: Automatic Docker image building and publishing
|
||||
- **API Documentation**: Interactive Swagger UI and ReDoc
|
||||
- **Health Checks**: Kubernetes-ready liveness and readiness probes
|
||||
- **System Monitoring**: CPU, memory, disk, and GPU metrics
|
||||
- **System Monitoring**: CPU, memory, and disk metrics
|
||||
|
||||
## Quick Start
|
||||
|
||||
### Local Development (CPU)
|
||||
### Local Development
|
||||
|
||||
```bash
|
||||
# Build and run
|
||||
@@ -47,14 +47,6 @@ curl http://localhost:8000/api/v1/jobs/{job_id}
|
||||
curl http://localhost:8000/api/v1/jobs/{job_id}/result -o output.jpg
|
||||
```
|
||||
|
||||
### GPU Support
|
||||
|
||||
```bash
|
||||
# Build with GPU support and run
|
||||
docker compose -f docker-compose.gpu.yml build
|
||||
docker compose -f docker-compose.gpu.yml up -d
|
||||
```
|
||||
|
||||
## API Endpoints
|
||||
|
||||
### Upscaling
|
||||
@@ -122,14 +114,14 @@ RSR_AUTO_CLEANUP_HOURS=24 # Auto cleanup interval
|
||||
|
||||
## Docker Deployment
|
||||
|
||||
### Development (CPU)
|
||||
### Local/Development
|
||||
|
||||
```bash
|
||||
docker compose build
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
### Production (GPU)
|
||||
### Production
|
||||
|
||||
```bash
|
||||
docker compose -f docker-compose.prod.yml up -d
|
||||
@@ -139,7 +131,7 @@ docker compose -f docker-compose.prod.yml up -d
|
||||
|
||||
The `.gitea/workflows/build.yml` automatically:
|
||||
|
||||
1. Builds Docker images for CPU and GPU variants
|
||||
1. Builds Docker image
|
||||
2. Publishes to Gitea Container Registry
|
||||
3. Tags with git commit SHA and latest
|
||||
|
||||
@@ -174,7 +166,6 @@ app/
|
||||
|
||||
- **Synchronous Upscaling**: Best for small images (< 4MP)
|
||||
- **Asynchronous Jobs**: Recommended for large batches or high concurrency
|
||||
- **GPU Performance**: 2-5x faster than CPU depending on model and image size
|
||||
- **Tile Processing**: Efficiently handles images up to 8K resolution
|
||||
|
||||
## Development
|
||||
@@ -182,7 +173,7 @@ app/
|
||||
Install dependencies:
|
||||
|
||||
```bash
|
||||
pip install -r requirements.txt -r requirements-cpu.txt
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
Run locally:
|
||||
|
||||
Reference in New Issue
Block a user