Coder Social home page Coder Social logo

Comments (11)

krisezra87 avatar krisezra87 commented on June 22, 2024

Despite what seems to be a good compile now, obs-studio doesn't see the plugin. Even if I try the approaches the others in the issues list have recommended: moving into /usr/share and /usr/lib as well as into .config/obs-studio...

Not really sure what to make of that.

from obs-backgroundremoval.

krisezra87 avatar krisezra87 commented on June 22, 2024

A little digging with strace says:

warning: Module '/usr//lib/obs-plugins/obs-backgroundremoval.so' not loaded

So it is indeed seeing the plugin, but choosing not to load it.

Tips or advice?

from obs-backgroundremoval.

royshil avatar royshil commented on June 22, 2024

usually it fails to load because of missing dependencies...
can you inspect the shared library deps of your obs-backgroundremoval.so file?
perhaps it's just a e.g. LD_LIBRARY_PATH issue

from obs-backgroundremoval.

krisezra87 avatar krisezra87 commented on June 22, 2024

Ah yes, I see I don't have libonnxruntime.so. This is a real bear to get installed for some reason on arch. I did a fresh pull from github from the link you have in the description and for some reason it won't build to completion. The work continues.

from obs-backgroundremoval.

laundry-96 avatar laundry-96 commented on June 22, 2024

@krisezra87 Have you been able to get this installed on Arch? I am not seemingly having any luck...

from obs-backgroundremoval.

krisezra87 avatar krisezra87 commented on June 22, 2024

@laundry-96 no I have not been able to make it work yet unfortunately. I have tried several onnx installs but nothing has generated that .so file for me yet. You have reminded me that this was on my todo list. I think I am going to nuke my install and start fresh.

from obs-backgroundremoval.

krisezra87 avatar krisezra87 commented on June 22, 2024

@laundry-96 I got it! I'm by no means an expert here, but it looks like the onnxruntime files are actually obtained during the make and perhaps cleaned up. I went here:

https://github.com/microsoft/onnxruntime/releases/tag/v1.7.0

And downloaded / extracted the x64 tgz file for this release (it's the one that is shown as being necessary in the makeprg call and from objdump -p /usr/local/lib/obs-plugins/obs-backgroundremoval.so). Inside the extracted tgz there is a lib folder that contains libonnxruntime.so and libonnxruntime.so.1.7.0. I symlinked these both into /usr/lib.

I put the plugin in a variety of places at the advice of other people in the issues list and I'm not sure which one eventually loaded... but I'm fairly certain this is the key right here.

It's ugly, but it worked!

from obs-backgroundremoval.

royshil avatar royshil commented on June 22, 2024

@krisezra87 please let me know if the latest release works https://github.com/royshil/obs-backgroundremoval/releases/tag/v0.2.5-beta

from obs-backgroundremoval.

krisezra87 avatar krisezra87 commented on June 22, 2024

@royshil this looks much better and is very close. No longer need the ~/.config/obs-studio/plugins symbolic links which is great, and I didn't have to manually symlink libonnxruntime.so into /usr/lib.

Some minor issues I'm not sure how to fix in a pull request:

  1. The checksum is wrong. I bypassed with makepkg --skipchecksums -si
  2. Install instructions are slightly wrong. You need the -i flag above to get the .so files distributed.
  3. Minor: I can't actually start up the virtual camera in obs-studio without running as sudo. There seems to be something slightly weird with the polkit settings and the agent prompts for password (but it won't take my password).

All told, running now with makepkg --skipchecksums -si in the scripts folder works properly out of the box, provided that obs is launched with sudo... which I don't like, but I'm willing to roll with for now :).

from obs-backgroundremoval.

laundry-96 avatar laundry-96 commented on June 22, 2024

I'm able to build the latest commit with makepkg, and install with makepkg -i with no issues.

from obs-backgroundremoval.

royshil avatar royshil commented on June 22, 2024

going to close this issue as most acute problems are resolved

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.