# 透過超解析度提升影像畫質

在執行模型的管線命令前，請確保完成必要的 [前置條件](https://docs.qualcomm.com/doc/80-70020-15BT/topic/ai-hub-qualcomm-im-sdk.html#prerequisites)

備註

輸入視訊需要 dimensions 為 128x128 以獲得最佳 results。

執行以下命令以確保您的結果顯示在連接的顯示器上。

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

## QuickSRNetLarge

QuickSRNetLarge 設計用途為在行動平台上對影像進行即時銳化，以提升影像畫質。

AI Hub 模型以 [此 QuickSRNetLarge 實作](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) 為基礎。

- 模型： [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 設計用途為在行動平台上對影像進行即時銳化，以提升影像畫質。

AI Hub 模型以 [此 QuickSRNetMedium 實作](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) 為基礎。

- 模型： [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 設計用途為在行動平台上對影像進行即時銳化，以提升影像畫質。

AI Hub 模型以 [此 QuickSRNetSmall 實作](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) 為基礎。

- 模型： [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 專為輕量級即時影像提升畫質而設計。

AI Hub 模型以 [此 XLSR 實作](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/xlsr) 為基礎。

- 模型： [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
套用語義分割至視訊畫面](https://docs.qualcomm.com/bundle/publicresource/80-70020-15BT/topics/semantic-segmentation.md) [Next Topic
故障排除和常見問題解答](https://docs.qualcomm.com/bundle/publicresource/80-70020-15BT/topics/troubleshooting.md)