File size: 2,997 Bytes
9fd445b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Google Colab Gradio Interface

This folder contains two versions of the Google Colab notebook:

## Files

### 1. `Video_Subtitle_Remover_Gradio.ipynb` ⭐ **NEW - Recommended**
**Gradio Web Interface** - Easy-to-use browser-based UI

**Features:**
- 🖱️ Click-and-upload interface (no coding required)
- 🎨 Visual algorithm selection
- ⚙️ Adjustable parameters with sliders
- 📊 Real-time progress tracking
- 📥 One-click download

**Best for:**
- Users who prefer GUI
- Quick testing
- Non-technical users
- Multiple video processing

**Usage:**
1. Open in Colab
2. Run all cells
3. Click the generated link
4. Use web interface in browser

---

### 2. `Video_Subtitle_Remover.ipynb`
**Traditional Notebook** - Code-based approach

**Features:**
- Step-by-step execution
- Full control over parameters
- Good for understanding the process
- Batch processing scripts

**Best for:**
- Users comfortable with code
- Custom workflows
- Debugging
- Learning the internals

---

## Quick Start

### For Gradio Interface (Recommended):

```bash
1. Open Video_Subtitle_Remover_Gradio.ipynb in Colab
2. Runtime → Change runtime type → GPU
3. Run all cells (Ctrl+F9)
4. Click the gradio.live URL
5. Upload video and click "Remove Subtitles"
```

### For Traditional Notebook:

```bash
1. Open Video_Subtitle_Remover.ipynb in Colab
2. Runtime → Change runtime type → GPU
3. Run cells step by step
4. Configure settings in Step 5
5. Run processing in Step 7
```

## Algorithm Recommendations

| Use Case | Algorithm | Quality | Speed |
|----------|-----------|---------|-------|
| **Best Quality** | DiffuEraser | ⭐⭐⭐⭐⭐ | ⭐⭐ |
| **Fastest** | STTN | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| **Balanced** | Stable Diffusion | ⭐⭐⭐⭐ | ⭐⭐⭐ |
| **High Motion** | ProPainter | ⭐⭐⭐⭐⭐ | ⭐ |

## System Requirements

- **GPU**: Required (T4/P100/V100)
- **Storage**: 10-20GB for models
- **VRAM**: 
  - STTN: 4GB
  - DiffuEraser: 12GB
  - Stable Diffusion: 8GB

## Performance (Colab T4 GPU)

| Video | Algorithm | Time |
|-------|-----------|------|
| 1 min 720p | STTN | ~30s |
| 1 min 720p | DiffuEraser | ~3-5min |
| 5 min 720p | STTN | ~2min |
| 5 min 720p | DiffuEraser | ~15-20min |

## Troubleshooting

### Gradio not loading
- Wait 30-60 seconds for models to load
- Check if all cells ran successfully
- Restart runtime and try again

### Out of Memory
- Reduce batch size in settings
- Use STTN instead of DiffuEraser
- Process shorter videos

### Slow processing
- Use STTN for preview
- Enable GPU in Colab settings
- Consider Colab Pro for unlimited runtime

## Links

- **GitHub**: https://github.com/YaoFANGUK/video-subtitle-remover
- **Documentation**: See `docs/` folder
- **Issues**: Report on GitHub

## Tips

1. **Start with STTN** to test quickly
2. **Use DiffuEraser** for final high-quality output
3. **Keep videos under 10 minutes** on free tier
4. **Save to Google Drive** to avoid data loss
5. **Monitor GPU usage** with `!nvidia-smi`