# Tăng độ phân giải hình ảnh bằng super resolution

Trước khi chạy lệnh pipeline cho một mô hình, hãy tuân thủ các [Điều kiện tiên quyết](https://docs.qualcomm.com/doc/80-70018-15BV/topic/ai-hub-qualcomm-im-sdk.html#prerequisites) bắt buộc

Ghi chú

Video đầu vào cần có kích thước 128 x 128 để có kết quả tối ưu.

Chạy lệnh sau để đảm bảo kết quả hiển thị trên màn hình được kết nối.

export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1
    Copy to clipboard

## QuickSRNetLarge-Quantized

QuickSRNetLarge được thiết kế cho việc tăng độ phân giải hình ảnh trên nền tảng di động nhằm làm sắc nét hình ảnh theo thời gian thực.

Mô hình AI Hub dựa trên [cách triển khai QuickSRNetLarge-Quantized này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Mô hình: [quicksrnetlarge_quantized.tflite](https://aihub.qualcomm.com/iot/models/quicksrnetlarge_quantized)

gst-launch-1.0 -e --gst-debug=2 \
    filesrc location=/etc/media/video.mp4 ! qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=4 output-io-mode=4 ! video/x-raw,format=NV12 ! queue ! tee name=split \
    split. ! queue ! qtivcomposer name=mixer sink_0::position="<0, 0>" sink_0::dimensions="<960, 1080>" sink_1::position="<960, 0>" sink_1::dimensions="<960, 1080>" ! \
    queue ! waylandsink sync=true fullscreen=true \
    split. ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so \
    external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/etc/models/quicksrnetlarge_quantized.tflite ! queue ! \
    qtimlvsuperresolution module=srnet constants="qsrnetlarge,q-offsets=<0.0>,q-scales=<1.0>;" ! video/x-raw,format=RGB ! queue ! mixer.
    Copy to clipboard

## QuickSRNetMedium-Quantized

QuickSRNetMedium được thiết kế cho việc tăng độ phân giải hình ảnh trên nền tảng di động nhằm làm sắc nét hình ảnh theo thời gian thực.

Mô hình AI Hub dựa trên [cách triển khai QuickSRNetMedium-Quantized này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Mô hình: [quicksrnetmedium_quantized.tflite](https://aihub.qualcomm.com/iot/models/quicksrnetmedium_quantized)

gst-launch-1.0 -e --gst-debug=2 \
    filesrc location=/etc/media/video.mp4 ! qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=4 output-io-mode=4 ! video/x-raw,format=NV12 ! queue ! tee name=split \
    split. ! queue ! qtivcomposer name=mixer sink_0::position="<0, 0>" sink_0::dimensions="<960, 1080>" sink_1::position="<960, 0>" sink_1::dimensions="<960, 1080>" ! \
    queue ! waylandsink sync=true fullscreen=true \
    split. ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so \
    external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/etc/models/quicksrnetmedium_quantized.tflite ! queue ! \
    qtimlvsuperresolution module=srnet constants="qsrnetlarge,q-offsets=<0.0>,q-scales=<1.0>;" ! video/x-raw,format=RGB ! queue ! mixer.
    Copy to clipboard

## QuickSRNetSmall-Quantized

QuickSRNetSmall được thiết kế cho việc tăng độ phân giải hình ảnh trên nền tảng di động nhằm làm sắc nét hình ảnh theo thời gian thực.

Mô hình AI Hub dựa trên [cách triển khai QuickSRNetSmall-Quantized này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Mô hình: [quicksrnetsmall_quantized.tflite](https://aihub.qualcomm.com/iot/models/quicksrnetsmall_quantized)

gst-launch-1.0 -e --gst-debug=2 \
    filesrc location=/etc/media/video.mp4 ! qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=4 output-io-mode=4 ! video/x-raw,format=NV12 ! queue ! tee name=split \
    split. ! queue ! qtivcomposer name=mixer sink_0::position="<0, 0>" sink_0::dimensions="<960, 1080>" sink_1::position="<960, 0>" sink_1::dimensions="<960, 1080>" ! \
    queue ! waylandsink sync=true fullscreen=true \
    split. ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so \
    external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/etc/models/quicksrnetsmall_quantized.tflite ! queue ! \
    qtimlvsuperresolution module=srnet constants="qsrnetlarge,q-offsets=<0.0>,q-scales=<1.0>;" ! video/x-raw,format=RGB ! queue ! mixer.
    Copy to clipboard

## XLSR-Quantized

XLSR được thiết kế cho việc tăng độ phân giải hình ảnh theo thời gian thực gọn nhẹ.

Mô hình AI Hub dựa trên [cách triển khai XLSR-Quantized này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/xlsr).

- Mô hình: [xlsr_quantized.tflite](https://aihub.qualcomm.com/iot/models/xlsr_quantized)

gst-launch-1.0 -e --gst-debug=2 \
    filesrc location=/etc/media/video.mp4 ! qtdemux ! queue ! h264parse ! v4l2h264dec capture-io-mode=4 output-io-mode=4 ! video/x-raw,format=NV12 ! queue ! tee name=split \
    split. ! queue ! qtivcomposer name=mixer sink_0::position="<0, 0>" sink_0::dimensions="<960, 1080>" sink_1::position="<960, 0>" sink_1::dimensions="<960, 1080>" ! \
    queue ! waylandsink sync=true fullscreen=true \
    split. ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so \
    external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/etc/models/xlsr_quantized.tflite ! queue ! \
    qtimlvsuperresolution module=srnet constants="qsrnetlarge,q-offsets=<0.0>,q-scales=<1.0>;" ! video/x-raw,format=RGB ! queue ! mixer.
    Copy to clipboard

Last Published: Oct 22, 2025

[Previous Topic
Áp dụng semantic segmentation cho khung hình của video](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BV/topics/semantic-segmentation.md) [Next Topic
Khắc phục sự cố và Câu hỏi thường gặp](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BV/topics/troubleshooting.md)