longpipe 0.0.14 โ 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -270
- package/dist/chunk-NYCCJS3G.js +4924 -0
- package/dist/index-BctoEDhZ.d.cts +288 -0
- package/dist/index-BctoEDhZ.d.ts +288 -0
- package/dist/index.d.cts +3 -229
- package/dist/index.d.ts +3 -229
- package/dist/index.js +4 -4926
- package/dist/model.cjs +7008 -0
- package/dist/model.d.cts +155 -0
- package/dist/model.d.ts +155 -0
- package/dist/model.js +2085 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -1,286 +1,65 @@
|
|
|
1
1
|
# Longpipe ๐
|
|
2
2
|
|
|
3
|
-
Fast, high
|
|
3
|
+
Fast, high-quality video effects in the browser โ virtual backgrounds, face touch-up, auto-reframe, and mic noise removal in one open-source SDK.
|
|
4
4
|
|
|
5
|
+
<img width="960" height="540" alt="video-effects-sdk" src="https://github.com/user-attachments/assets/5dbe1ccb-09dd-4f22-b4be-e3122767dbcc" />
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Try the live demo: [longpipe.dev/demo](https://longpipe.dev/demo)
|
|
7
|
+
**Try the live demo โ [longpipe.dev/demo](https://longpipe.dev/demo)**
|
|
11
8
|
|
|
12
9
|
> **Warning** โ This project is very new and still under active development. Expect API changes between versions and bugs.
|
|
13
10
|
|
|
14
|
-
##
|
|
15
|
-
|
|
16
|
-
- **Support across browsers:** Works on every browser, simplifying dozens of browser inconsistencies in one simple API.
|
|
17
|
-
- **Performance:** Longpipe was built from the ground up to work as well on 10-year-old netbooks as it does on the latest MacBook Pro.
|
|
18
|
-
- **Adaptivity:** Longpipe has several model variants (xl to xs), auto-selecting to provide the best quality while maintaining 30 fps.
|
|
19
|
-
- **Effects that compose:** virtual backgrounds, skin touch-up, and auto-reframe all run together off a single shared encoder pass โ enabling one doesn't cost you another inference.
|
|
20
|
-
- Built by the founder of [Vectorly](https://www.crunchbase.com/organization/vectorly), a commercial effects SDK acquired in 2021. A ground-up redesign for the WebGPU era, with years of production lessons baked in.
|
|
21
|
-
|
|
22
|
-
## Install
|
|
11
|
+
## Quick start
|
|
23
12
|
|
|
24
13
|
```
|
|
25
14
|
npm install longpipe
|
|
26
15
|
```
|
|
27
16
|
|
|
28
|
-
## Quick start
|
|
29
|
-
|
|
30
17
|
```ts
|
|
31
18
|
import { EffectsPipeline } from 'longpipe'
|
|
32
19
|
|
|
33
|
-
const
|
|
20
|
+
const stream = await navigator.mediaDevices.getUserMedia({ video: true, audio: true })
|
|
34
21
|
|
|
35
|
-
const pipeline = new EffectsPipeline(
|
|
36
|
-
background: 'blur',
|
|
37
|
-
|
|
22
|
+
const pipeline = new EffectsPipeline(stream, {
|
|
23
|
+
background: 'blur', // or an image, video, or solid color
|
|
24
|
+
touchup: true, // skin smoothing
|
|
25
|
+
reframe: true, // auto-frame the subject
|
|
26
|
+
audio: 'denoise', // mic noise removal
|
|
38
27
|
})
|
|
39
28
|
|
|
40
29
|
videoEl.srcObject = pipeline.stream // available immediately
|
|
41
30
|
await pipeline.ready // optional โ resolves once the effect is live
|
|
42
31
|
```
|
|
43
32
|
|
|
44
|
-
`pipeline.stream` is wired synchronously and emits the unprocessed input until the model is ready (~1โ
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
## Performance
|
|
48
|
-
|
|
49
|
-
Longpipe uses custom-trained models built with an EfficientNet-Lite encoder and a U-Net style decoder, broken into five performance presets (`xs` through `xl`) that vary in encoder size, decoder width, and input resolution. Across all variants Longpipe has much higher segmentation accuracy than alternative open-source models like MediaPipe and BodyPix, while also delivering much better real-world performance โ the model runs as pure WebGPU/WebGL shaders in a zero-copy, fully-GPU pipeline.
|
|
50
|
-
|
|
51
|
-
### Quality
|
|
52
|
-
Using average alpha pixel error on the P3M-10K valdation dataset (499 landscape images), all variants of Longpipe surpassed mediapipe in both MAE and IoU.
|
|
53
|
-
|
|
54
|
-
<img width="640" alt="lp-quality" src="https://github.com/user-attachments/assets/c7044937-95af-496f-893a-a05a50d7c914" />
|
|
55
|
-
|
|
56
|
-
### Speed
|
|
57
|
-
With the pure GPU zero copy pipeline, Longpipe achieves better real world performance than mediapipe using much larger models.
|
|
58
|
-
|
|
59
|
-
<img width="640" alt="lp-speed" src="https://github.com/user-attachments/assets/ce658b8d-dc62-4d6b-90f8-cd62dfef2a59" />
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## Backgrounds
|
|
66
|
-
|
|
67
|
-
The `background` option takes a wide set of inputs and normalizes them internally:
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
new EffectsPipeline(stream, { background: 'none' }) // passthrough
|
|
71
|
-
new EffectsPipeline(stream, { background: 'blur' }) // default sigma
|
|
72
|
-
new EffectsPipeline(stream, { background: { blur: { sigma: 12 } } })
|
|
73
|
-
|
|
74
|
-
// images: URL, <img>, ImageBitmap, or { image: ... }
|
|
75
|
-
new EffectsPipeline(stream, { background: 'https://example.com/bg.jpg' })
|
|
76
|
-
new EffectsPipeline(stream, { background: imgElement })
|
|
77
|
-
new EffectsPipeline(stream, { background: imageBitmap })
|
|
78
|
-
|
|
79
|
-
// video: URL, Blob, or <video> โ looped, muted, decoded on the main thread
|
|
80
|
-
new EffectsPipeline(stream, { background: { video: 'https://example.com/bg.mp4' } })
|
|
81
|
-
|
|
82
|
-
// solid color โ hex string or [r, g, b] floats in [0, 1]
|
|
83
|
-
new EffectsPipeline(stream, { background: { color: '#00b050' } }) // greenscreen
|
|
84
|
-
new EffectsPipeline(stream, { background: { color: [0, 0.7, 0.3] } })
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
Swap at runtime:
|
|
33
|
+
`pipeline.stream` is wired synchronously and emits the unprocessed input until the model is ready (~1โ3 s on cold start), so users see live video the whole time. Model weights stream from `cdn.longpipe.dev` by default โ no extra setup, and [self-hostable](https://longpipe.dev/docs/self-hosting).
|
|
88
34
|
|
|
89
|
-
|
|
90
|
-
await pipeline.setBackground({ blur: { sigma: 20 } })
|
|
91
|
-
await pipeline.setBackground('https://example.com/other-bg.jpg')
|
|
92
|
-
```
|
|
35
|
+
## Why Longpipe
|
|
93
36
|
|
|
94
|
-
|
|
37
|
+
- **One model, many effects.** Backgrounds, touch-up, and auto-reframe all run off a single shared encoder pass โ enabling another effect doesn't cost another inference. Audio denoise runs in a parallel `AudioWorklet`, off the GPU entirely. ([Architecture](https://longpipe.dev/docs/architecture))
|
|
38
|
+
- **More accurate *and* faster than the open-source alternatives.** Custom-trained models running as pure WebGPU/WebGL shaders in a zero-copy, fully-GPU pipeline โ no general-purpose runtime, no CPUโGPU round trips.
|
|
39
|
+
- **Works everywhere.** Chromium, Firefox, and Safari (desktop + iOS). WebGPU when available, WebGL2 fallback, per-browser frame transport handled internally.
|
|
40
|
+
- **Adapts to the device.** Five model presets (`xs`โ`xl`); autotune benchmarks the actual device at init and an adaptive controller swaps presets at runtime to hold 30 fps โ on 10-year-old netbooks and the latest MacBook Pro alike.
|
|
41
|
+
- **Production pedigree.** Built by the founder of [Vectorly](https://www.crunchbase.com/organization/vectorly), a commercial effects SDK acquired in 2021 โ a ground-up redesign for the WebGPU era.
|
|
95
42
|
|
|
96
|
-
|
|
97
|
-
new EffectsPipeline(stream, { preset: 'auto' }) // benchmarks at init (default)
|
|
98
|
-
new EffectsPipeline(stream, { preset: 'fast' }) // small model
|
|
99
|
-
new EffectsPipeline(stream, { preset: 'balanced' }) // medium model
|
|
100
|
-
new EffectsPipeline(stream, { preset: 'quality' }) // xl model
|
|
101
|
-
```
|
|
43
|
+
### Best models on the web
|
|
102
44
|
|
|
103
|
-
|
|
45
|
+
Longpipe's hydranet architecture, custom model-specific shaders, zero-memory-copy pipeline, developer friendly interface and 100% MIT open source license mean that ๐ฒ Longpipe pareto dominates on performance, model quality and ease of use.
|
|
104
46
|
|
|
105
|
-
|
|
47
|
+
<img width="958" height="652" alt="lp-performance" src="https://github.com/user-attachments/assets/792b9f63-e8fd-4d30-aa90-9c92b6a0430c" />
|
|
106
48
|
|
|
107
|
-
```ts
|
|
108
|
-
new EffectsPipeline(stream, {
|
|
109
|
-
preset: { model: 'large', dtype: 'f32', resolution: { w: 640, h: 400 }, skipFrames: 0 },
|
|
110
|
-
})
|
|
111
|
-
```
|
|
112
49
|
|
|
113
|
-
##
|
|
50
|
+
## Documentation
|
|
114
51
|
|
|
115
|
-
|
|
52
|
+
Full docs live at **[longpipe.dev/docs](https://longpipe.dev/docs)**:
|
|
116
53
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
| `model` | tier | what it is |
|
|
125
|
-
|-----------|------|------------|
|
|
126
|
-
| `dfn` | high | DeepFilterNet3, full f32 โ best quality |
|
|
127
|
-
| `dfnint8` | mid | DeepFilterNet3 with int8 GRUs โ smaller download, faster on weak hardware |
|
|
128
|
-
| `rnnoise` | low | classic RNNoise โ tiny, and the fallback where wasm SIMD is unavailable |
|
|
129
|
-
|
|
130
|
-
```ts
|
|
131
|
-
// force a specific model or tier instead of probing
|
|
132
|
-
new EffectsPipeline(stream, { audio: { denoise: { model: 'dfn' } } })
|
|
133
|
-
|
|
134
|
-
interface DenoiseOptions {
|
|
135
|
-
model?: 'auto' | 'high' | 'mid' | 'low' | 'rnnoise' | 'dfn' | 'dfnint8' // default 'auto'
|
|
136
|
-
postFilterBeta?: number // DFN post-filter, suppresses residual noise (default 0.03)
|
|
137
|
-
gruLeak?: number // DFN recurrent-drift bound (default 0.995)
|
|
138
|
-
enabled?: boolean // start denoising vs. passthrough (default true)
|
|
139
|
-
}
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
Toggle, reconfigure, and inspect at runtime:
|
|
143
|
-
|
|
144
|
-
```ts
|
|
145
|
-
pipeline.setDenoise(false) // passthrough (cheap to re-enable)
|
|
146
|
-
pipeline.setDenoise({ postFilterBeta: 0.05 }) // tweak DFN params live
|
|
147
|
-
pipeline.getAudioStats() // { model, p50Ms, p95Ms, latencyMs, sampleRate, active }
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
The denoiser handles sample-rate conversion internally (it runs at 48 kHz and resamples when the device can't). `pipeline.ready` resolves on the video first frame and does **not** wait on audio โ denoising joins asynchronously, with the mic passing through until it's live.
|
|
151
|
-
|
|
152
|
-
## Other options
|
|
153
|
-
|
|
154
|
-
```ts
|
|
155
|
-
new EffectsPipeline(stream, {
|
|
156
|
-
background: 'blur',
|
|
157
|
-
touchup: { strength: 0.6 }, // skin smoothing; omit to disable
|
|
158
|
-
reframe: true, // auto-frame the subject; omit to disable
|
|
159
|
-
preset: 'auto',
|
|
160
|
-
adaptive: true, // default; only applies when preset is 'auto'
|
|
161
|
-
audio: 'denoise', // 'passthrough' | 'drop' | 'denoise' | { denoise: {...} }
|
|
162
|
-
outputResolution: { w: 1280, h: 720 }, // default: matches the input video track
|
|
163
|
-
weightsBaseUrl: 'https://your-cdn/longpipe/', // default: cdn.longpipe.dev
|
|
164
|
-
enabled: true, // false = pass input through unchanged
|
|
165
|
-
onReady: () => console.log('live'),
|
|
166
|
-
onError: (err) => console.error(err),
|
|
167
|
-
})
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
Toggle the effect on/off without tearing anything down (cheap to re-enable):
|
|
171
|
-
|
|
172
|
-
```ts
|
|
173
|
-
pipeline.setEnabled(false)
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Tear it all down:
|
|
177
|
-
|
|
178
|
-
```ts
|
|
179
|
-
pipeline.destroy()
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
## Self-hosting weights
|
|
183
|
-
|
|
184
|
-
By default Longpipe fetches model weights from `https://cdn.longpipe.dev/models/v/0.0.5/`. You can browse the available files, sizes, and SHA-256 hashes at [cdn.longpipe.dev/models/v/0.0.5/index.html](https://cdn.longpipe.dev/models/v/0.0.5/index.html) (machine-readable list at [manifest.json](https://cdn.longpipe.dev/models/v/0.0.5/manifest.json)).
|
|
185
|
-
|
|
186
|
-
To serve them yourself, mirror the files under any base URL with the same `model_${name}.bin` naming convention and pass it via `weightsBaseUrl`:
|
|
187
|
-
|
|
188
|
-
```ts
|
|
189
|
-
new EffectsPipeline(stream, {
|
|
190
|
-
weightsBaseUrl: 'https://your-cdn.example.com/longpipe-weights/',
|
|
191
|
-
})
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
If you use touch-up, three more files must sit alongside the tier weights โ they're fetched from the same base URL the first time the effect is enabled: `model_landmark_mesh.bin` (and `.f16.bin`), `face_topology.json`, and `weight_mask.png`. Miss these and matting still works, but touch-up fails to enable. Auto-reframe needs nothing extra.
|
|
195
|
-
|
|
196
|
-
## Browser support
|
|
197
|
-
|
|
198
|
-
Works on Chromium (Chrome, Edge), Firefox, and Safari (desktop and iOS). WebGPU is used when available; WebGL2 is the fallback. Longpipe picks the optimal video frame transport for each browser internally โ `MediaStreamTrackProcessor`, `transferControlToOffscreen` + `captureStream`, or an `ImageBitmap` shuttle as universal fallback โ all invisible to the caller.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
## Face touch-up
|
|
203
|
-
|
|
204
|
-
UV-space skin smoothing (the "beautify" filter). It runs **in parallel with any background effect** โ both features share one encoder pass per frame, and the retouched frame feeds the background compositor.
|
|
205
|
-
|
|
206
|
-
```ts
|
|
207
|
-
new EffectsPipeline(stream, {
|
|
208
|
-
background: 'blur',
|
|
209
|
-
touchup: { strength: 0.6 }, // presence enables it
|
|
210
|
-
})
|
|
211
|
-
|
|
212
|
-
await pipeline.setTouchup({ strength: 0.8, style: 'bilateral' }) // live update
|
|
213
|
-
await pipeline.setTouchup(null) // disable
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
```ts
|
|
217
|
-
interface TouchupOptions {
|
|
218
|
-
strength?: number // 0..1 โ blend of smoothed skin over original (default 0.6)
|
|
219
|
-
amount?: number // smoothing radius (default 8)
|
|
220
|
-
detail?: number // high-frequency (pore texture) keep โ freq-sep only (default 0.35)
|
|
221
|
-
style?: 'freq-sep' | 'bilateral' // default 'freq-sep'
|
|
222
|
-
}
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
How it works: a 5-point face-keypoint head rides the matting encoder (no second encoder pass); its heatmaps are decoded on the GPU into a face box; a 478-point landmark model runs on the face crop; the face is unwrapped into a pose-independent UV atlas, smoothed there, and composited back through a per-region weight mask. Eyes, brows, and lips are protected and stay pixel-exact; `'freq-sep'` smooths while keeping pore-level texture, `'bilateral'` is a stronger edge-preserving filter. The whole chain is GPU-resident โ no per-frame readback.
|
|
226
|
-
|
|
227
|
-
On first enable the landmark weights (`model_landmark_mesh.bin`, ~2.6 MB) and two small static assets are fetched from `weightsBaseUrl`, then cached; parameter updates are instant. With no face in frame the effect passes through cleanly.
|
|
228
|
-
|
|
229
|
-
Everyone in frame gets smoothed โ up to **four faces** on the `medium`, `large` and `xl` presets. (`small` and `xs` decode keypoints on a coarser grid that can't reliably separate a second face, so they smooth one.) There's no per-face API and nothing to configure; the faces share a single atlas, so the smoothing passes run once regardless of how many people are in shot.
|
|
230
|
-
|
|
231
|
-
## Auto-reframe
|
|
232
|
-
|
|
233
|
-
Crop and zoom the output so the subject is framed โ the "centre stage" behaviour from Meet, Zoom and Teams. It rides the same face keypoints as touch-up, so it needs **no extra model and no extra assets**: turning it on costs a crop, not an inference.
|
|
234
|
-
|
|
235
|
-
```ts
|
|
236
|
-
new EffectsPipeline(stream, { reframe: true }) // auto-follow, all defaults
|
|
237
|
-
new EffectsPipeline(stream, { reframe: { auto: false } }) // solve once, then freeze
|
|
238
|
-
|
|
239
|
-
await pipeline.setReframe({ zoom: 1.6 }) // enable / update live
|
|
240
|
-
await pipeline.reframe() // manual mode: re-solve now
|
|
241
|
-
await pipeline.setReframe(null) // disable
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
```ts
|
|
245
|
-
type ReframeConfig = boolean | ReframeOptions
|
|
246
|
-
|
|
247
|
-
interface ReframeOptions {
|
|
248
|
-
zoom?: number // crop = frame / zoom (default 1.35; relaxes toward 1 as needed)
|
|
249
|
-
gravity?: number // 0..1 pull toward the subject (default 0.5; 1 would centre it exactly)
|
|
250
|
-
margin?: number // keep-out space around the face (default 0.04)
|
|
251
|
-
auto?: boolean | { deadband?: number; ease?: number } // default true
|
|
252
|
-
}
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
Two modes, because apps ship both. **auto** (default) follows the subject with a deadband โ it holds still, makes a deliberate move when they've actually gone somewhere, then holds again; continuous tracking reads as swimming, because a head moves constantly even when a person doesn't. **manual** (`auto: false`) frames once and freezes until you call `pipeline.reframe()` โ the mode for a reframe button in your own UI.
|
|
256
|
-
|
|
257
|
-
The crop must stay inside the frame *and* contain the subject, which has a useful consequence: if you sit hard in a corner, auto-reframe does nothing at all, because containing you would need a crop the size of the whole frame. That falls out of the constraints rather than being a special case, and it matches what the commercial implementations do.
|
|
258
|
-
|
|
259
|
-
It reframes **you**, not your background: with a virtual background the image stays put while you zoom (it's a backdrop behind you, not part of the shot), while a *blurred* background reframes with you, since that is your real room. Neither needs configuring. Auto-reframe frames one subject โ the largest face โ and the choice is sticky, so two people side by side won't make the camera flip back and forth. That's the opposite of touch-up, which smooths everyone: framing is a choice about whose shot it is; smoothing isn't.
|
|
260
|
-
|
|
261
|
-
## How it works
|
|
262
|
-
|
|
263
|
-
Two layers:
|
|
264
|
-
|
|
265
|
-
- **Model** (`src/model/`) โ a shared EfficientNet-Lite encoder (lite0; lite3 on the `xl` tier) feeding multiple heads: a U-Net matting decoder (sharpened at higher resolution by a lightweight U-Net *wrapper*), a 5-point face-keypoint head (drives touch-up and auto-reframe), and a small optical-flow head that provides temporal stability โ the renderer warps the previous outputs along the predicted flow and blends them through a flow-gated stabilizer, so the matte is steady without any recurrent state in the network. A separate 478-point landmark model runs on the detected face crop. Written as TypeScript op classes โ each layer is a class; weights load as binary tensors at init; the backend (WebGPU or WebGL2) is injected at construction. BatchNorm is fused into conv weights at export โ there is no BN op at inference.
|
|
266
|
-
- **Pipeline** (`src/pipeline/`) โ capability detection, per-browser frame transport selection, worker spawn, audio passthrough, autotune, and the adaptive controller. Designed to absorb the browser/codec/canvas plumbing complexity so consumers don't have to.
|
|
267
|
-
|
|
268
|
-
Five trained presets cover the hardware range. "Resolution" is the model's working (canvas) resolution; the encoder runs at a lower internal resolution and the U-Net wrapper refines back up to this.
|
|
269
|
-
|
|
270
|
-
| Preset | Resolution | Encoder | Decoder | Skip frames |
|
|
271
|
-
|--------|------------|--------------|----------|-------------|
|
|
272
|
-
| xl | 1280ร768 | full (lite3) | 2ร ch | 0 |
|
|
273
|
-
| large | 640ร400 | full (lite0) | standard | 0 |
|
|
274
|
-
| medium | 512ร320 | full (lite0) | standard | 1 |
|
|
275
|
-
| small | 384ร224 | small | standard | 1 |
|
|
276
|
-
| xs | 384ร240 | small | standard | 2 |
|
|
277
|
-
|
|
278
|
-
`Skip frames` is how many input frames the model sits out between runs โ the compositor still renders every frame using the most recent alpha matte. Autotune picks one of these at init based on a microbenchmark of the actual network on the actual device.
|
|
279
|
-
|
|
280
|
-
## Development
|
|
281
|
-
|
|
282
|
-
Training scripts, fixture generation, and the weight export pipeline are not yet documented here โ coming soon.
|
|
54
|
+
- [Getting started](https://longpipe.dev/docs/getting-started)
|
|
55
|
+
- [API reference](https://longpipe.dev/docs/api) โ all `EffectsPipeline` options and methods
|
|
56
|
+
- [Architecture](https://longpipe.dev/docs/architecture) โ the hydranet: one encoder, many heads
|
|
57
|
+
- [Backgrounds](https://longpipe.dev/docs/backgrounds) ยท [Touch-up](https://longpipe.dev/docs/touchup) ยท [Auto-reframe](https://longpipe.dev/docs/reframe) ยท [Audio denoise](https://longpipe.dev/docs/audio)
|
|
58
|
+
- [Presets & autotune](https://longpipe.dev/docs/presets)
|
|
59
|
+
- [Model layer](https://longpipe.dev/docs/model-layer) โ drive the model directly, without the pipeline
|
|
60
|
+
- [Self-hosting weights](https://longpipe.dev/docs/self-hosting)
|
|
283
61
|
|
|
62
|
+
Machine-readable for LLMs and agents: [`llms.txt`](https://longpipe.dev/llms.txt) ยท [`llms-full.txt`](https://longpipe.dev/llms-full.txt)
|
|
284
63
|
|
|
285
64
|
## Roadmap
|
|
286
65
|
|
|
@@ -292,25 +71,8 @@ Training scripts, fixture generation, and the weight export pipeline are not yet
|
|
|
292
71
|
- [ ] AR effects
|
|
293
72
|
- [ ] Lighting correction
|
|
294
73
|
|
|
295
|
-
|
|
296
74
|
## License
|
|
297
75
|
|
|
298
|
-
SDK source code
|
|
299
|
-
|
|
300
|
-
The pre-trained model weights distributed via `cdn.longpipe.dev` (and any mirrored copies) are also MIT-licensed โ see [WEIGHTS_LICENSE](WEIGHTS_LICENSE). You're free to self-host them inside other open-source or commercial projects under MIT-compatible terms.
|
|
301
|
-
|
|
302
|
-
### Training data and pretrained weights
|
|
303
|
-
|
|
304
|
-
Longpipe's pre-trained weights are released under MIT (see [WEIGHTS_LICENSE](WEIGHTS_LICENSE)). They were trained on:
|
|
305
|
-
|
|
306
|
-
- [P3M-10k](https://github.com/JizhiziLi/P3M) โ MIT
|
|
307
|
-
- [AISegment Matting Human Datasets](https://www.kaggle.com/datasets/laurentmih/aisegmentcom-matting-human-datasets) โ MIT ([upstream license](https://github.com/aisegmentcn/matting_human_datasets/blob/master/LICENSE))
|
|
308
|
-
- [COCO](https://cocodataset.org) CC BY 4.0
|
|
309
|
-
- [OpenImages](https://storage.googleapis.com/openimages/web/index.html) CC by 4.0
|
|
310
|
-
- Synthetic images generated with [Z-Image](https://github.com/Tongyi-MAI/Z-Image) (text-to-image) โ Apache 2.0
|
|
311
|
-
- A custom dataset of short webcam videos collected via [Prolific](https://www.prolific.com/), from participants who gave explicit, informed consent for their footage to be used to train an open-source virtual-background model. Faces are blurred before training; the raw videos are stored privately (EU), never distributed, and deleted after the training window.
|
|
312
|
-
- Pseudo-labels generated by [BiRefNet](https://github.com/ZhengPeng7/BiRefNet) (MIT), used as a teacher model
|
|
313
|
-
|
|
314
|
-
The encoder is initialized from a pre-trained [EfficientNet-Lite](https://github.com/RangiLyu/EfficientNet-Lite) backbone โ Apache 2.0.
|
|
76
|
+
SDK source code **and** pre-trained model weights are MIT-licensed โ see [LICENSE](LICENSE) and [WEIGHTS_LICENSE](WEIGHTS_LICENSE). You're free to self-host the weights inside other open-source or commercial projects under MIT-compatible terms.
|
|
315
77
|
|
|
316
|
-
|
|
78
|
+
The weights were trained on permissively-licensed public datasets (P3M-10k, AISegment, COCO, OpenImages), Z-Image synthetics, and a custom webcam dataset collected with participants' explicit, informed consent. The full dataset list and provenance details: [longpipe.dev/docs/licensing](https://longpipe.dev/docs/licensing).
|