You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/locaal-ai/obs-backgroundremoval/releases)
[](https://github.com/royshil/obs-backgroundremoval/releases)
11
10
12
11
</div>
13
12
14
13
A plugin for [OBS Studio](https://obsproject.com/) that allows you to replace the background in portrait images and video, as well as enhance low-light scenes.
- Remove background from ANY object (not just human): https://youtu.be/N74VCDCToX8
40
37
41
-
## Download
42
-
43
-
Check out the [guide page](https://royshil.github.io/obs-backgroundremoval/) for downloads and install instructions for **Windows** and **MacOS**.
44
-
45
-
### Linux Installation
46
-
47
-
On Ubuntu, there are two ways to install OBS and you have to use the corresponding method to install this plugin.
48
-
49
-
- If you installed OBS via the official PPA, download the deb package from the [releases](https://github.com/locaal-ai/obs-backgroundremoval/releases) page and install it directly.
50
-
- If you installed OBS via FlatHub, run the following command: `flatpak install com.obsproject.Studio.Plugin.BackgroundRemoval`
51
-
52
-
The pre-built binary of this plugin can run Ubuntu 22.04 or later.
53
-
54
-
On openSUSE, please see [`docs/BUILDING-OPENSUSE.md`](docs/BUILDING-OPENSUSE.md).
55
-
56
-
#### FlatHub
57
-
58
-
On Debian, you cannot use our deb package and we only support FlatHub installation.
59
-
60
-
On other Linux distros, use the FlatHub installation of both OBS and this plugin.
If you install OBS in a way other than FlatHub, you have to build this plugin by yourself (see instructions for building [below](#linux)).
69
-
70
-
### OBS Version Support and Compatibility
71
-
72
-
- OBS version 29+ ([download](https://obsproject.com/download)) for the latest version of this plugin, e.g. 1.1.x and above.
73
-
- OBS version 28+ for this plugin's version between 0.5.x and 1.0.x.
74
-
- OBS version 27+ for this plugin's version 0.4.x and below.
75
-
76
38
## Introduction
77
39
78
40
This plugin is meant to make it easy to replace the background in portrait images and video.
@@ -87,20 +49,22 @@ If you like this work, which is given to you completely free of charge, please c
87
49
88
50
### Support and Help
89
51
90
-
Reach out to us on [Discord](https://discord.gg/3EUBUjpCD3) or the [OBS Plugins forum](https://obsproject.com/forum/resources/background-removal-portrait-segmentation.1260/) for online / immediate help.
52
+
Reach out to us on [GitHub Discussions](https://github.com/royshil/obs-backgroundremoval/discussions) or the [OBS Plugins forum](https://obsproject.com/forum/resources/background-removal-portrait-segmentation.1260/) for online / immediate help.
91
53
92
-
If you found a bug or want to suggest a feature or improvement please open an [issue](https://github.com/locaal-ai/obs-backgroundremoval/issues).
54
+
If you found a bug or want to suggest a feature or improvement please open an [issue](https://github.com/royshil/obs-backgroundremoval/issues).
93
55
94
56
If you are looking for hands-on help or private consultation please select a [sponsorship tier](https://github.com/sponsors/royshil?frequency=one-time).
95
57
96
58
### Technical Details
97
59
60
+
<!--
98
61
GPU support:
99
62
100
63
- Currently on Windows we support DirectML, which should reduce CPU usage by 95% and effectively use the systems accelerators (GPUs if available).
101
64
- On Mac we support CoreML for acceleration, which is available on M1 and M2 (not Intel, sorry).
102
65
- CUDA is supported in this plugin through TensorRT, however it is supported only on Linux.
103
66
- The goal of this plugin is to be available for everyone on every system, even if they don't own a GPU.
67
+
-->
104
68
105
69
Number of CPU threads is controllable through the UI settings. A 2-thread setting works best.
106
70
@@ -132,70 +96,6 @@ This video on YouTube will take you through the major parts of the code and expl
132
96
</a>
133
97
</div>
134
98
135
-
## Building
136
-
137
-
The plugin was built and tested on Mac OSX (Intel & Apple silicon), Windows and several Linux disros (e.g. Ubuntu/Debian-ish, Fedora, and more). Help is appreciated in building on other OSs and packages.
138
-
139
-
The building pipelines in CI take care of the heavy lifting. Use them in order to build the plugin locally. We attempt to use external OpenCV, libcurl and ONNX Runtime to reduce build times.
140
-
141
-
Start by cloning this repo to a directory of your choice.
142
-
143
-
### Mac OSX
144
-
145
-
Using the CI pipeline scripts, locally you would just call the zsh script. By default this builds a universal binary for both Intel and Apple Silicon. To build for a specific architecture please see `.github/scripts/.build.zsh` for the `-arch` options.
146
-
147
-
```sh
148
-
$ ./.github/scripts/build-macos -c Release
149
-
```
150
-
151
-
#### Install
152
-
153
-
The above script should succeed and the plugin files (e.g. `obs-backgroundremoval.plugin`) will reside in the `./release/Release` folder off of the root. Copy the `.plugin` file to the OBS directory e.g. `~/Library/Application Support/obs-studio/plugins`.
154
-
155
-
To get `.pkg` installer file, run for example
156
-
157
-
```sh
158
-
$ ./.github/scripts/package-macos -c Release
159
-
```
160
-
161
-
(Note that maybe the outputs will be in the `Release` folder and not the `install` folder like `pakage-macos` expects, so you will need to rename the folder from `build_x86_64/Release` to `build_x86_64/install`)
162
-
163
-
### Linux
164
-
165
-
#### Ubuntu
166
-
167
-
Use the CI scripts again
168
-
169
-
```sh
170
-
$ ./.github/scripts/build-linux.sh
171
-
```
172
-
173
-
#### Arch Linux
174
-
175
-
The community maintains AUR packages: https://aur.archlinux.org/packages/obs-backgroundremoval
176
-
177
-
#### Fedora
178
-
179
-
To compile on Fedora, you need to manage the dependencies manually. See [docs/BUILDING-FEDORA.md](docs/BUILDING-FEDORA.md) for more information.
180
-
181
-
#### FlatHub
182
-
183
-
The plugin is available on FlatHub: https://github.com/flathub/com.obsproject.Studio.Plugin.BackgroundRemoval
0 commit comments