Skip to content

migraphx bug [vapoursynth] #3925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ryou128hr opened this issue Apr 2, 2025 · 2 comments
Open

migraphx bug [vapoursynth] #3925

ryou128hr opened this issue Apr 2, 2025 · 2 comments

Comments

@ryou128hr
Copy link

ryou128hr commented Apr 2, 2025

Image

Arch linux

CPU 5700X3d

MPV player
Vapoursynth

RX 7800XT

GPU color noise i, stutter without framedrop

gpu usage 60%

stutter with num_streams=>2

Code:

onnx:

Comapct 2x ( 960x540 reize 1920x1080)


/opt/rocm/bin/migraphx-driver compile --onnx 2x_Compact_fp32_op17.onnx --gpu --optimize --binary --output Compact.mxr --input-dim @input 1 3 540 960 --fp16

VS:

import vapoursynth as vs
core = vs.core
core.std.LoadPlugin( "/usr/local/lib/libvsmigx.so")
clip= video_in
clip = video_in
clip = vs.core.resize.Bicubic(clip,format=vs.RGBS, matrix_in_s=709)
clip = core.migx.Model(clip, program_path="/home/ryou/Videos/Compact.mxr",num_streams=1,tilesize=[960,540],overlap=[0, 0])
clip = vs.core.resize.Bicubic(clip,format=vs.YUV420P8, matrix_s=709)
clip.set_output()


What is the cause?

@ppanchad-amd
Copy link

Hi @ryou128hr. Internal ticket has been created to assist with your issue. Thanks!

@adityas-amd
Copy link

Hi @ryou128hr To help us reproduce and debug this properly, could you please share the following?

  1. The 2x_Compact_fp32_op17.onnx model used during compilation.
  2. A short sample video clip (or any test pattern) that reproduces the stutter issue.
  3. Exact ROCm and MIGraphX versions you're using (output of rocminfo, migraphx-driver --version, and rocm-smi would be helpful).
    My initial speculation is-
    Using num_streams=2 might be invoking an async multi-queue path in MIGraphX → ROCm stack, which may have synchronization issues in the VapourSynth integration layer or driver layer.

Noise/stutter without frame drop suggests timing or scheduling inconsistencies — possibly caused by tiling overlap issues (tilesize=[960,540], overlap=[0,0]) on the 7800XT architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants