Coder Social home page Coder Social logo

Comments (11)

Maikuh avatar Maikuh commented on July 2, 2024 1

Seems to not be working anymore. the git apply command fails; looks like the repo has changed since then and I'm just getting a black screen when enabling the filter.

from obs-backgroundremoval.

royshil avatar royshil commented on July 2, 2024

this is excellent stuff @mproffitt
can you create a pull request?
i'll clean it up for release so that it works alongside the other platforms

from obs-backgroundremoval.

saif-ellafi avatar saif-ellafi commented on July 2, 2024

Thanks a lot mproffitt

But what a mess this is for Linux... unfortunately.
Had to go through first this PR #57
In order to be able to build this one.
But then the plugin does not show up in OBS for Ubuntu Studio, apparently only works on OBS Studio 27.1.3? The one with Ubuntu Studio is 27.0.1 I believe... so installing OBS Studio from the PPA removes libobs0 because well the libs in Ubuntu are outdated for that. Even so, I then get a black screen when enabling the background remover...

Guess I'll have to switch to a rolling release distro. Otherwise I'll have to compile obs-studio myself. Or switch to windows...

Dang...

from obs-backgroundremoval.

steepestascent avatar steepestascent commented on July 2, 2024

this is excellent stuff @mproffitt can you create a pull request? i'll clean it up for release so that it works alongside the other platforms

@royshil #57 is the PR you requested. I was able to build this and run with a GPU on Ubuntu. If you still need time to review other platforms can we update the README in the meantime to let people know GPU works on linux with this PR. If you have already tested the other platforms can we merge #57 to main?

from obs-backgroundremoval.

ngoonee avatar ngoonee commented on July 2, 2024

Am so glad this has finally been merged. It works fine with 1.7.0, but 1.9.0 requires the includes for cuda_provider_factory.h to be removed from src/background-filter.cpp and src/Model.h

Also as previously mentioned, need to link it to the gpu version of onxxruntime. Selecting CPU or GPU doesn't do anything because it will always use GPU. #57 has some ideas on how to solve this but I have not tried them out as I can't imagine WANTING to use CPU...

from obs-backgroundremoval.

Mte90 avatar Mte90 commented on July 2, 2024

I did also that change in background-filter.cpp on line 190 as on Debian the path is different and the obs_find_module return an empty string

	std::string path = "/usr/lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval/";
	path += tf->modelSelection.c_str();
	char* modelFilepath_rawPtr = &path[0];

I also compile everything with those commands:

cd build
cmake -DWITH_CUDA=ON .. && cmake --build . && cmake --install .

mv /usr/local/lib/obs-plugins/obs-backgroundremoval.so /usr/lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval.so
rm -fr '/usr/lib/x86_64-linux-gnu/obs-plugins/obs-backgroundremoval'
mv /usr/local/share/obs/obs-plugins/obs-backgroundremoval/ /usr/lib/x86_64-linux-gnu/obs-plugins/

from obs-backgroundremoval.

Mte90 avatar Mte90 commented on July 2, 2024

I had to the blank filter and it was on my tests a wrong compile because wasn't able to find the files, my patch above fix that issue forcing the right path

from obs-backgroundremoval.

ngoonee avatar ngoonee commented on July 2, 2024

This is no longer working with 0.5.1 (which makes sense as the release does not support CUDA). Will open a separate issue for build problems I'm experiencing.

from obs-backgroundremoval.

grinco avatar grinco commented on July 2, 2024

This is related: #242

from obs-backgroundremoval.

umireon avatar umireon commented on July 2, 2024

Now we have stable CUDA support on Linux so can we close this issue as completed? @royshil

from obs-backgroundremoval.

royshil avatar royshil commented on July 2, 2024

Sure. if anything else CUDA & Linux related pops up we can handle directly

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.