Giter Club home page Giter Club logo

Comments (12)

umireon avatar umireon commented on June 29, 2024 1

@royshil We can provide build instructions with ROCm rather than provide pre-built binaries.

@reaperx7 Are you so kind as to develop a ROCm-enabled version of our plugin? We will appreciate your contributions!

from obs-backgroundremoval.

reaperx7 avatar reaperx7 commented on June 29, 2024 1

I would if I could, but I can't read code worth a penny.

from obs-backgroundremoval.

payom avatar payom commented on June 29, 2024 1

Just dropping in to confirm I was able to build the plugin using the C/C++ API of the ROCm Execution Provider. All I needed to do was to modify ort-session-utils.cpp to add the ROCm EP to the ONNX Runtime session instead of the TensorRT EP, and to then to set the appropriate flag in CMake to use the system's own ONNX Runtime presumably built for ROCm.

from obs-backgroundremoval.

umireon avatar umireon commented on June 29, 2024

@royshil

from obs-backgroundremoval.

royshil avatar royshil commented on June 29, 2024

rocm in general is supported by ONNX runtime: https://onnxruntime.ai/docs/execution-providers/ROCm-ExecutionProvider.html
i just don't have a solid way of testing this
also we would need to build onnxruntime with rocm support: https://onnxruntime.ai/docs/build/eps.html#amd-rocm
since the linux release for ORT doesn't include the rocm EP
image
only CUDA and TRT
so i'm not sure... we could certainly use some help w this

from obs-backgroundremoval.

umireon avatar umireon commented on June 29, 2024

@reaperx7 Do you have an environment to test our ROCm-enabled plugin if we provide you with build instructions?

from obs-backgroundremoval.

reaperx7 avatar reaperx7 commented on June 29, 2024

from obs-backgroundremoval.

umireon avatar umireon commented on June 29, 2024

@reaperx7 @payom I have implemented the initial ROCm support. Can you test this?
#545

from obs-backgroundremoval.

reaperx7 avatar reaperx7 commented on June 29, 2024

from obs-backgroundremoval.

umireon avatar umireon commented on June 29, 2024

@reaperx7 You must build the binary by yourself. We will not provide any pre-built things. Thank you!

from obs-backgroundremoval.

reaperx7 avatar reaperx7 commented on June 29, 2024

from obs-backgroundremoval.

reaperx7 avatar reaperx7 commented on June 29, 2024

Tried enabling plugin and got error and obs crashed. log file attached.
error.log

Source built with flags:

cmake -B build --preset linux-x86_64 -DENABLE_ROCM=ON

from obs-backgroundremoval.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.