kimhosoo commited on
Commit
95b7c73
·
verified ·
1 Parent(s): b9bb862

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +54 -0
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # synth_captioning
2
+
3
+ Captioning pipeline for the synthetic PinPan datasets (`enrue1893/PinPan_Train_Syn`), extracted
4
+ from `JointGen-backup`. Perspective-crop rendering happens upstream (external simulator); this
5
+ bundle only covers the **captioning stage**: pulling pre-rendered panorama + 5 perspective clips
6
+ per sample and generating structured JSON captions with a locally-served Qwen VLM
7
+ (`Qwen/Qwen3.6-27B`).
8
+
9
+ ## Files
10
+
11
+ ```
12
+ data/dataset_streaming_template/
13
+ stream_process_pinpan_train_syn_captions_only.py # entry point — run this
14
+ stream_process.py # generic streaming template (reference)
15
+ README.md # streaming pattern docs
16
+ data/_5traj_4view_analysis/
17
+ pano_conditioning.py # provides equi2pers() (ERP -> pinhole)
18
+ qwen36_test/
19
+ caption_qwen36_8k_5traj.py # caption_9view_qwen() engine
20
+ caption_qwen36_pano_perspective_pair.py # low-level ERP/pinhole + Qwen helpers
21
+ vllm_serve_wrapper.py # `vllm serve` wrapper (GEMM kernel workaround)
22
+ README.md # vLLM server launch instructions
23
+ requirements/
24
+ qwen36_env.txt # pinned Python deps
25
+ ```
26
+
27
+ Import chain: `stream_process_pinpan_train_syn_captions_only.py` -> `caption_qwen36_8k_5traj.py`
28
+ (`q5`) -> `caption_qwen36_pano_perspective_pair.py` -> `pano_conditioning.py` (`equi2pers`).
29
+
30
+ ## Setup
31
+
32
+ 1. `python -m venv venv && source venv/bin/activate && pip install -r requirements/qwen36_env.txt`
33
+ 2. Serve the captioning model: see `qwen36_test/README.md`
34
+ (`python qwen36_test/vllm_serve_wrapper.py serve Qwen/Qwen3.6-27B --host 0.0.0.0 --port 8000 ...`).
35
+ 3. **Fix the hardcoded conditioning path.** `caption_qwen36_pano_perspective_pair.py` defines:
36
+ ```python
37
+ DEFAULT_PANO_CONDITIONING_PATH = (
38
+ "/home/work/.local/khs/Projects/PanoWorld/cosmos_predict2/_src/predict2/utils/pano_conditioning.py"
39
+ )
40
+ ```
41
+ That absolute path won't exist on a new machine. Point it at the copy included in this bundle
42
+ (`data/_5traj_4view_analysis/pano_conditioning.py`), e.g. edit the constant or symlink it into
43
+ place before running.
44
+ 4. Put an HF **write** token at `data/dataset_streaming_template/.hftoken` (gitignored, not
45
+ included here) — used to upload results to `OUTPUT_REPO`. Override the input/output repos,
46
+ `QWEN36_TEST_DIR`, `VLLM_BASE_URLS`, `VLLM_MODEL`, etc. via env vars (see the top of
47
+ `stream_process_pinpan_train_syn_captions_only.py`).
48
+ 5. Run:
49
+ ```bash
50
+ cd data/dataset_streaming_template
51
+ python stream_process_pinpan_train_syn_captions_only.py
52
+ ```
53
+
54
+ Source: `JointGen-backup` (khs2001d), `data/dataset_streaming_template/` and `qwen36_test/`.