Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
This is related: #242
from obs-backgroundremoval.
Now we have stable CUDA support on Linux so can we close this issue as completed? @royshil
from obs-backgroundremoval.
Sure. if anything else CUDA & Linux related pops up we can handle directly
from obs-backgroundremoval.
Related Issues (20)
- Background removal doesn't work nicely with the Source Clone plugin from Exeldro. HOT 7
- Can this plugin remove the background of a game card instead of a human portrait? HOT 18
- The latest update for OBS Back ground removal will not load because of Microsoft Defender SmartScreen HOT 6
- Latest update seems to break silhouette coherence HOT 2
- Huge latency issue in Linux HOT 6
- Support more than one person HOT 3
- DirectML not working with AMD RX 7800 XT
- Obs does not start after installing the background removal tool HOT 8
- Tremendous latency apon diabling source HOT 13
- Version 1.1.13 doesn't work HOT 16
- Background removal
- Not able to update the obs on `linux` HOT 3
- OBS does not load plugin HOT 6
- Plugin loads, but doesn't do anything HOT 5
- be able to capture full dody and hands as they extend out to point HOT 3
- Background color setting is missing from background removal advanced settings HOT 1
- Build issue on Fedora 40: failed to set dynamic section sizes: bad value HOT 7
- Feature request: Face tracking HOT 1
- fail to build on arm64 ubuntu jammy HOT 8
- OBS launch error after installing plugin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-backgroundremoval.