File size: 1,523 Bytes
dfdd942
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bda6419
 
f6ae966
bda6419
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
library_name: pytorch
pipeline_tag: image-to-image
tags:
  - document-image-restoration
  - dewarping
  - deshadowing
  - deblurring
  - binarization
  - appearance-enhancement
  - doctra
model-index:
  - name: DocRes (Main Weights, docres.pkl)
    results: []
---

# DocRes Main Weights (docres.pkl)

These are the official **DocRes** (CVPR 2024) main weights (`docres.pkl`), rehosted for use in the [Doctra](https://github.com/AdemBoukhris457/Doctra) library.

---

## πŸ“– Source
- Original repository: [ZZZHANG-jx/DocRes](https://github.com/ZZZHANG-jx/DocRes)
- Paper: *DocRes: Dynamic Task-Specific Prompt for Generalist Document Image Restoration* (CVPR 2024)

---

## βš–οΈ License
MIT License (see LICENSE file).  
Weights are redistributed under the same terms, with attribution to the original authors.

---

## βœ… Intended Use
The `docres.pkl` weights are used with the DocRes model backbone to perform generalist document image restoration tasks, including:

- πŸ“ Dewarping  
- πŸŒ— Deshadowing  
- ✨ Appearance enhancement (illumination cleanup)  
- πŸ”„ Deblurring  
- ⚫ Binarization  

These weights are integrated into the **Doctra** library to improve preprocessing and restoration of scanned or photographed documents.

---

## ⚠️ Limitations
- Performance may not always exceed highly specialized single-task models.  
- Trained on specific datasets (see [source repo](https://github.com/ZZZHANG-jx/DocRes) for details).  
- Not intended for non-document natural images.

---