Practical overview
When it fits
Use FBCNN when working with JPEG restoration where the compression quality factor may be unknown, or when exploring the model's documented training and test scripts.
Who it is for
- Researchers and developers working on image restoration or JPEG artifact removal.
- Users who need a documented model workflow for grayscale, color, double-JPEG, or real-world JPEG images.
Documented uses
- Reduce visible artifacts in JPEG-compressed images.
- Test restoration workflows on grayscale, color, double-compressed, or real-world JPEGs.
- Train the model using the repository's documented training script and JSON configuration files.
Requirements & limits
The public repository is open source under Apache-2.0. Its README links to a Gradio web demo hosted on Hugging Face Spaces as a separate way to try JPEG images.
- The README specifies Python 3.7+ and PyTorch 1.7.
- Separate test scripts are listed for grayscale, double-JPEG grayscale, color, and real-world color images.
- Training uses
main_train_fbcnn.pyand JSON configuration files in./options/. - The model's predicted quality factor is used to control the trade-off between artifact removal and detail preservation.
- A linked Gradio demo is distinct from the repository's local research-code workflows.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Run a documented FBCNN test script
Select and launch the repository's test script corresponding to a documented JPEG image category.
Before you start
- Python 3.7 or later
- PyTorch 1.7
- The FBCNN repository
Steps
Choose the test script for grayscale, double-JPEG grayscale, color, or real-world color JPEG images.
Run the corresponding documented command: the command below, the command below, the command below, or the command below.
python main_test_fbcnn_gray.pypython main_test_fbcnn_gray_doublejpeg.pypython main_test_fbcnn_color.pypython main_test_fbcnn_color_real.py
Expected outcome
Starts the documented testing workflow for the selected image category.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 October 2026
- Original website title
- jiaxi-jiang/FBCNN · Official homepage title · retained in its source language

