haeing commited on
Commit
c859fbf
Β·
verified Β·
1 Parent(s): 8f3c401

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +39 -21
README.md CHANGED
@@ -9,45 +9,63 @@ tags:
9
  library_name: gapseg
10
  ---
11
 
12
- # GapSeg β€” Diagnosis-Gated Learned Shape Completion
 
 
 
 
 
 
 
 
13
 
14
- Single RGB-D β†’ per-object **distortion diagnosis** β†’ gated **learned completion** β†’
15
- full 3D shape + dimensions. A single view of an object gives a broken 3D shape;
16
- this pipeline predicts which objects are distorted and completes only those with a
17
- learned network, beating geometric multi-view fusion.
18
 
19
  <p align="center">
20
- <img src="gallery.gif" width="600" alt="single RGB-D to completed 3D across 6 scenes"/>
21
  </p>
 
 
 
22
 
23
- ## Results (GraspNet, 140 objects, chamfer mm ↓)
 
 
24
 
25
- | method | chamfer | vs single |
26
- |---------------|--------:|----------:|
27
- | single view | 6.40 | β€” |
28
- | geometric fusion | 5.44 | 88% (sig) |
29
- | **single + completion** | **2.99** | 92% (sig) |
30
- | **diagnosis-gated completion** | **3.12** | 91% (sig) |
31
 
32
- Learned completion of a single view beats multi-view geometric fusion; gating it
33
- by the diagnoser keeps the gain while only completing hard objects.
 
 
 
 
34
 
35
- ## Usage
 
 
 
36
 
37
  ```python
38
  from gapseg.pipeline import GapSegPipeline
39
  pipe = GapSegPipeline.from_pretrained("haeing/gapseg", device="cuda")
40
 
41
- # rgb: HxWx3 uint8, depth_m: HxW float (metres), K: 3x3
42
  # instances: [{"inst_id": 1, "mask": HxW bool, "R": 3x3, "t": (3,)}, ...]
43
  out = pipe.infer(rgb, depth_m, K, instances)
44
  for o in out:
45
  print(o["inst_id"], o["dims_cm"], "completed:", o["completed"])
46
  ```
47
 
48
- `R`/`t` (object pose) drive completion; objects without a pose or below the
49
  diagnosis threshold return their single-view cloud.
50
 
51
- ## Contents
52
- - `sq2_gview/best.pt` β€” the G_view diagnoser (RGB-D β†’ distortion / conditions)
53
- - `sq3_completion/best.pt` β€” the PCN shape-completion network
 
 
 
 
9
  library_name: gapseg
10
  ---
11
 
12
+ <p align="center">
13
+ <img src="mascot.png" width="240" alt="GapSeg mascot"/>
14
+ </p>
15
+
16
+ <h1 align="center">🦎 GapSeg</h1>
17
+ <p align="center"><b>Diagnosis-Gated Learned Shape Completion</b></p>
18
+ <p align="center"><i>One RGB-D photo in β†’ a complete 3D shape out ✨</i></p>
19
+
20
+ ---
21
 
22
+ A single photo of an object gives a **broken, half-there 3D shape** 🫠 β€” hidden
23
+ sides are just missing. GapSeg is a little chameleon πŸ¦ŽπŸ” that **looks at each
24
+ object, guesses which ones came out distorted, and re-grows only those** with a
25
+ learned network. The result beats stitching many camera angles together.
26
 
27
  <p align="center">
28
+ <img src="gallery.gif" width="620" alt="single RGB-D to completed 3D across 6 scenes"/>
29
  </p>
30
+ <p align="center"><sub>one RGB-D frame β†’ completed 3D, across 6 GraspNet scenes πŸŒ€</sub></p>
31
+
32
+ ## ✨ Why it's neat
33
 
34
+ - πŸ” **Diagnose first** β€” predict per-object distortion from a single frame
35
+ - 🧩 **Complete only what's broken** β€” learned shape completion, gated by the diagnosis
36
+ - πŸ† **Beats geometric multi-view fusion** β€” with just one view + completion
37
 
38
+ ## πŸ“Š Results (GraspNet, 278 objects, chamfer mm ↓ lower = better)
 
 
 
 
 
39
 
40
+ | method | chamfer | vs single |
41
+ |---|--:|--:|
42
+ | πŸ“· single view | 6.60 | β€” |
43
+ | 🧡 geometric fusion | 5.64 | 88% βœ… |
44
+ | 🧩 **single + completion** | **2.75** | 95% βœ… |
45
+ | 🦎 **diagnosis-gated completion** | **2.84** | 94% βœ… |
46
 
47
+ > 🎯 **One photo + learned completion (2.75 mm) beats fusing many views (5.64 mm).**
48
+ > Gating it by the diagnoser keeps the gain while only completing the hard objects.
49
+
50
+ ## πŸš€ Usage
51
 
52
  ```python
53
  from gapseg.pipeline import GapSegPipeline
54
  pipe = GapSegPipeline.from_pretrained("haeing/gapseg", device="cuda")
55
 
56
+ # rgb: HxWx3 uint8 Β· depth_m: HxW float (metres) Β· K: 3x3
57
  # instances: [{"inst_id": 1, "mask": HxW bool, "R": 3x3, "t": (3,)}, ...]
58
  out = pipe.infer(rgb, depth_m, K, instances)
59
  for o in out:
60
  print(o["inst_id"], o["dims_cm"], "completed:", o["completed"])
61
  ```
62
 
63
+ 🧭 `R`/`t` (object pose) drive completion; objects with no pose or below the
64
  diagnosis threshold return their single-view cloud.
65
 
66
+ ## πŸ“¦ Contents
67
+ - 🧠 `sq2_gview/best.pt` β€” the G_view diagnoser (RGB-D β†’ distortion / conditions)
68
+ - 🧩 `sq3_completion/best.pt` β€” the PCN shape-completion network
69
+ - πŸ–ΌοΈ `gallery.gif` β€” rotating demo across 6 scenes
70
+
71
+ <p align="center"><sub>made with 🦎 + πŸ” Β· single view, whole shape</sub></p>