Repoaner commited on
Commit
9a179e3
Β·
verified Β·
1 Parent(s): bea39dc

Upload LLaVA-Next-3D/README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. LLaVA-Next-3D/README.md +59 -0
LLaVA-Next-3D/README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## Installation
2
+
3
+ 1. Clone this repository:
4
+ ```bash
5
+ git clone https://github.com/ZCMax/LLaVA-Next-3D.git
6
+ cd LLaVA-Next-3D
7
+ ```
8
+
9
+ 2. Create the conda environment:
10
+ ```bash
11
+ conda create -n llavanext3d python=3.10 -y
12
+ conda activate llavanext3d
13
+ pip install --upgrade pip # Enable PEP 660 support.
14
+ pip install -e ".[train]"
15
+ pip install flash-attn --no-build-isolation # install flash attention
16
+ ```
17
+
18
+
19
+ ## Data Preparation
20
+
21
+ The directory should be orgainized as:
22
+
23
+ ```
24
+ LLaVA-3D-Next # project root
25
+ β”œβ”€β”€ data
26
+ β”‚ β”œβ”€β”€ scannet
27
+ β”‚ β”‚ β”œβ”€β”€ scans
28
+ β”‚ β”‚ β”œβ”€β”€ posed_images
29
+ β”‚ β”‚ β”œβ”€β”€ pcd_with_object_aabbs
30
+ β”‚ β”‚ └── mask
31
+ β”‚ β”œβ”€β”€ embodiedscan
32
+ β”‚ β”‚ β”œβ”€β”€ embodiedscan_infos_full_llava3d_v2.json
33
+ β”‚ β”œβ”€β”€ metadata
34
+ β”‚ β”‚ β”œβ”€β”€ scannet_select_frames.json
35
+ β”‚ β”‚ β”œβ”€β”€ pcd_discrete_0.1.pkl
36
+ β”‚ β”‚ β”œβ”€β”€ scannet_train_gt_box.json
37
+ β”‚ β”‚ └── scannet_val_pred_box.json
38
+ β”‚ β”œβ”€β”€ prcoessed
39
+ β”‚ β”‚ β”œβ”€β”€ multi3drefer_train_llava_style.json
40
+ β”‚ β”‚ β”œβ”€β”€ multi3drefer_val_llava_style.json
41
+ β”‚ β”‚ β”œβ”€β”€ ...
42
+ ```
43
+
44
+ We have prepared the well organzied data under `/mnt/hwfile/openmmlab/zhuchenming/llava-next-3d-data`, you can directly link this to your data. Currently we only support training on ScanNet.
45
+
46
+
47
+ ## Training & Inference
48
+ ### Full-finetuned Training
49
+
50
+ You can use sbatch to launch the multi-node script:
51
+
52
+ ```bash
53
+ sh scripts/3d/train/train_16gpu_sbatch.sh
54
+ ```
55
+
56
+ ### Inference
57
+ ```bash
58
+ sh scripts/3d/eval/eval_scanrefer.sh $CKPT_NAME uniform 32
59
+ ```