# 超解像度で画像をアップスケールする

モデルのパイプライン・コマンドを実行する前に、必ず必要となる [前提条件](https://docs.qualcomm.com/doc/80-70018-15BJ/topic/ai-hub-qualcomm-im-sdk.html#prerequisites) に従ってください

注釈

最適な結果を得るためには、入力ビデオの次元が、128x128であることが必要です。

以下のコマンドを実行し、接続されたディスプレイに結果が表示されることを確認します。

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

## QuickSRNetLarge-Quantized

QuickSRNetLargeは、モバイルプラットフォーム上の画像をリアルタイムでシャープにアップスケーリングするために設計されています。

AI Hubモデルは、[このQuickSRNetLarge-Quantizedの実装](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) に基づいています。

- モデル： [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は、モバイルプラットフォーム上の画像をリアルタイムでシャープにアップスケーリングするために設計されています。

AI Hubモデルは、[このQuickSRNetMedium-Quantizedの実装](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) に基づいています。

- モデル： [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は、モバイルプラットフォーム上の画像をリアルタイムでシャープにアップスケーリングするために設計されています。

AI Hubモデルは、[このQuickSRNetSmall-Quantizedの実装](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/quicksrnet) に基づいています。

- モデル： [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は画像のリアルタイムでの軽量なアップスケーリング用に設計されています。

AI Hubモデルは、[このXLSR-Quantizedの実装](https://github.com/quic/aimet-model-zoo/tree/develop/aimet_zoo_torch/xlsr) に基づいています。

- モデル： [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 15, 2025

[Previous Topic
ビデオのフレームにセマンティック・セグメンテーションを適用する](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BJ/topics/semantic-segmentation.md) [Next Topic
トラブルシューティングとよくある質問](https://docs.qualcomm.com/bundle/publicresource/80-70018-15BJ/topics/troubleshooting.md)