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

Trước khi chạy lệnh pipeline cho một model, hãy tuân thủ các [Điều kiện tiên quyết](https://docs.qualcomm.com/doc/80-70020-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 display được kết nối.

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

## QuickSRNetLarge

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.

Model AI Hub dựa trên [việc triển khai QuickSRNetLarge này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Model: [QuickSRNetLarge](https://aihub.qualcomm.com/iot/models/quicksrnetlarge)

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

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.

Model AI Hub dựa trên [việc triển khai QuickSRNetMedium này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Model: [QuickSRNetMedium](https://aihub.qualcomm.com/iot/models/quicksrnetmedium)

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

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.

Model AI Hub dựa trên [việc triển khai QuickSRNetSmall này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet).

- Model: [QuickSRNetSmall](https://aihub.qualcomm.com/iot/models/quicksrnetsmall)

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

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ẹ.

Model AI Hub dựa trên [việc triển khai XLSR này](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/xlsr).

- Model: [XLSR](https://aihub.qualcomm.com/iot/models/xlsr)

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: Dec 23, 2025

[Previous Topic
Áp dụng semantic segmentation cho khung hình của video](https://docs.qualcomm.com/bundle/publicresource/80-70020-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-70020-15BV/topics/troubleshooting.md)