(from https://live.ece.utexas.edu/research/quality/)
Ailia input shape: (1, 3, 256, 256)
Range: [0, 1]
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample image,
python3 fbcnn.py
In the above, model is color
, input image is input.bmp
and output image is output.bmp
.
If you want to specify the input image, put the image path after the --input
option.
You can use --savepath
option to change the name of the output file to save.
Furthermore, you can use --model
option to change the model and choose model name from [color, color_real, gray, gray_doublejpeg]
.
$ python3 fbcnn.py --model MODEL_NAME --input IMAGE_PATH --savepath SAVE_IMAGE_PATH
By adding the --video
option, you can input the video.
If you pass 0
as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.
$ python3 fbcnn.py --model MODEL_NAME --video VIDEO_PATH --savepath SAVE_VIDEO_PATH
Paper: Towards Flexible Blind JPEG Artifacts Removal (FBCNN, ICCV 2021)
Github: jiaxi-jiang/FBCNN
Dataset: Laboratory for Image & Video Engineering
PyTorch 1.7.1
ONNX opset = 10
fbcnn_color.onnx.prototxt
fbcnn_color_real.onnx.prototxt
fbcnn_gray.onnx.prototxt
fbcnn_gray_doublejpeg.onnx.prototxt