photo-depthlisted
Install: claude install-skill skyeyesec333/photo-depth
# Photo depth: a picture that behaves like a place
```
0. setup a Python env with MoGe-2 (once; asks before downloading) scripts/setup.sh
1. depth picture → nearness map (+ 16-bit distance, camera, raw npz) scripts/depth.py
2a. window the picture as a window in three.js examples/portal.js
2b. place planes and points in the picture's own 3D scripts/fit_plane.py
3. check look at it from the extreme views you will really use
```
`scripts/` and `examples/` mean the folders **in this skill's own directory** (`${CLAUDE_SKILL_DIR}`, for a plugin
or a copied skill alike), not the user's project. Set `S` to that `scripts/` folder and run
`"$S/depth.py"` and the others by full path.
## 0. Setup (once)
Check first: an existing env with `import moge` working can be reused (ask the user where they keep one). Otherwise
**ask the user before downloading**, naming what comes down: PyTorch and helpers from PyPI (about 1 GB installed),
MoGe's source and two small libraries from GitHub (pinned commits, a few MB), and later the model weights (about
1.3 GB, `Ruicheng/moge-2-vitl` on Hugging Face). Then:
```sh
"$S/setup.sh" <folder-for-the-env> --yes
```
Details, GPU notes and other models: [references/setup.md](references/setup.md).
## 1. Depth
```sh
<env>/.venv/bin/python "$S/depth.py" picture.jpg --out public/depth/ [--dist16] [--npz]
```
- Always writes `<stem>-near.webp`: nearness (disparity), 0 the sky,