Spaces:
Sleeping
Sleeping
File size: 1,740 Bytes
84039c8 505c799 530fb78 84039c8 505c799 84039c8 505c799 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
---
title: CleanCut Background Remover
emoji: ✂️
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
models:
- ZhengPeng7/BiRefNet
---
# CleanCut - AI Background Remover
Professional background removal powered by BiRefNet model.
## Features
- 🚀 High-quality background removal
- 🎨 Preserves fine details (hair, fur, etc.)
- 📱 Mobile app support via API
- 🔥 Fast processing with GPU acceleration
## API Usage
### Endpoint
```
POST https://[your-space-name].hf.space/remove-background
```
### Example (Python)
```python
import requests
from PIL import Image
import io
# Send image
with open('image.jpg', 'rb') as f:
response = requests.post(
'https://[your-space-name].hf.space/remove-background',
files={'file': f}
)
# Save result
if response.status_code == 200:
img = Image.open(io.BytesIO(response.content))
img.save('result.png')
```
### Example (Flutter/Dart)
```dart
import 'package:dio/dio.dart';
final dio = Dio();
final formData = FormData.fromMap({
'file': await MultipartFile.fromFile(imagePath),
});
final response = await dio.post(
'https://[your-space-name].hf.space/remove-background',
data: formData,
);
if (response.statusCode == 200) {
// response.data contains the PNG image bytes
}
```
## Model Information
- **Model**: BiRefNet-dynamic
- **License**: MIT
- **Paper**: [BiRefNet: Bilateral Reference Network](https://arxiv.org/abs/2312.00090)
## Development
This is the server component for the CleanCut mobile app.
### Local Setup
```bash
pip install -r requirements.txt
python app.py
```
## Links
- 📱 [Mobile App](#) (Coming soon)
- 💻 [GitHub Repository](#)
- 📄 [Model Card](https://huggingface.co/ZhengPeng7/BiRefNet) |