flybrid commited on
Commit
32a4d19
·
verified ·
1 Parent(s): a351c92

Upload README_zh.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README_zh.md +185 -0
README_zh.md ADDED
@@ -0,0 +1,185 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ - zh
6
+ tags:
7
+ - 3d
8
+ - bim
9
+ - multimodal
10
+ - contrastive-learning
11
+ - point-cloud
12
+ - mesh
13
+ - vision-language
14
+ - building-information-modeling
15
+ pipeline_tag: image-classification
16
+ ---
17
+
18
+ # BIM-CLIP 模型权重
19
+
20
+ **图1:BIM-CLIP 框架总览**
21
+
22
+ ![图1](图/huggingface_README/Figure1.png)
23
+
24
+ **图2:BIM-CLIP 工作流与下游应用**
25
+
26
+ > 框架对异构输入分别通过专用编码器提取特征,并通过对比学习将其对齐到共享语义嵌入空间。经过保持对齐的微调后,所学表示可支持两类实际 BIM 下游任务。
27
+
28
+ ![图2](图/huggingface_README/Figure3.png)
29
+
30
+ **BIM-CLIP:面向 BIM 构件识别的语言引导多模态表示学习** 模型权重文件。
31
+
32
+ > 孟海宁、董浩洋、杨明松、范星、黑新宏
33
+ > 西安理工大学
34
+
35
+ 📄 [论文(预印本)](https://github.com/[待更新]) | 💻 [GitHub](https://github.com/[待更新]) | 🗂️ [BIMCompNet 数据集](https://bimcompnet-606lab.xaut.edu.cn/)
36
+
37
+ ---
38
+
39
+ ## 仓库结构
40
+
41
+ ```
42
+ bim-clip-weights/
43
+
44
+ ├── README.md
45
+
46
+ ├── BIMCompNet/ # 在 BIMCompNet 上训练的模型
47
+ │ ├── multimodal/
48
+ │ │ ├── best_100.mdl # BIMCompNet-100(42 类),多模态
49
+ │ │ ├── best_500.mdl # BIMCompNet-500(31 类),多模态
50
+ │ │ └── best_1000.mdl # BIMCompNet-1000(24 类),多模态
51
+ │ └── single_modal/
52
+ │ ├── best_100.mdl # BIMCompNet-100(42 类),单模态
53
+ │ ├── best_500.mdl # BIMCompNet-500(31 类),单模态
54
+ │ └── best_1000.mdl # BIMCompNet-1000(24 类),单模态
55
+
56
+ ├── IFCNet/
57
+ │ └── best_ifcnet.mdl # 多模态,在 IFCNet 上训练(20 类)
58
+
59
+ ├── ModelNet/
60
+ │ ├── best_10.mdl # 多模态,ModelNet-10
61
+ │ ├── best_40.mdl # 多模态,ModelNet-40
62
+ │ ├── ModelNet10.zip # ModelNet-10 多模态扩充数据集(含点云 + 多视角图像)
63
+ │ └── ModelNet40.zip # ModelNet-40 多模态扩充数据集(含点云 + 多视角图像)
64
+
65
+ └── ULIP2/
66
+ ├── best_ulip2_1000.mdl # ULIP-2 在 BIMCompNet-1000 上微调
67
+ └── ULIP-2-PointBERT-8k-xyz-pc-slip_vit_b-objaverse-pretrained.pt # 官方预训练权重(866 MB)
68
+ ```
69
+
70
+ ---
71
+
72
+ ## 模型汇总
73
+
74
+ | 文件 | 架构 | 训练集 | 类别数 | Acc (%) | F1 (%) |
75
+ |------|------|--------|--------|---------|--------|
76
+ | `BIMCompNet/multimodal/best_100.mdl` | BIM-CLIP (CMA) | BIMCompNet-100 | 42 | 87.38 | 87.44 |
77
+ | `BIMCompNet/multimodal/best_500.mdl` | BIM-CLIP (CMA) | BIMCompNet-500 | 31 | 91.35 | 91.28 |
78
+ | `BIMCompNet/multimodal/best_1000.mdl` | BIM-CLIP (CMA) | BIMCompNet-1000 | 24 | 91.79 | 91.83 |
79
+ | `BIMCompNet/single_modal/best_100.mdl` | BIM-CLIP(单模态) | BIMCompNet-100 | 42 | — | — |
80
+ | `BIMCompNet/single_modal/best_500.mdl` | BIM-CLIP(单模态) | BIMCompNet-500 | 31 | — | — |
81
+ | `BIMCompNet/single_modal/best_1000.mdl` | BIM-CLIP(单模态) | BIMCompNet-1000 | 24 | 88.69 | 87.90 |
82
+ | `IFCNet/best_ifcnet.mdl` | BIM-CLIP (CMA) | IFCNet | 20 | 91.00 | 90.39 |
83
+ | `ModelNet/best_10.mdl` | BIM-CLIP (CMA) | ModelNet-10 | 10 | 95.36 | 95.25* |
84
+ | `ModelNet/best_40.mdl` | BIM-CLIP (CMA) | ModelNet-40 | 40 | 92.22 | 90.34* |
85
+ | `ULIP2/best_ulip2_1000.mdl` | ULIP-2 | BIMCompNet-1000 | 24 | 90.98 | 91.02 |
86
+ | `ULIP2/ULIP-2-PointBERT-…-pretrained.pt` | ULIP-2(官方) | Objaverse | — | — | — |
87
+
88
+ *ModelNet 指标为 mAP。— 表示论文中未单独报告该指标。*
89
+
90
+ ---
91
+
92
+ ## 使用方法
93
+
94
+ ### 加载模型并运行评测
95
+
96
+ 克隆 GitHub 仓库后执行:
97
+
98
+ ```bash
99
+ # 评测 BIMCompNet-1000 多模态
100
+ python bimclip.py --mode eval --data_type MULTI_MODAL \
101
+ --data_root /path/to/BIMCompNet --index_root /path/to/index \
102
+ --set_size 1000 \
103
+ --model_path /path/to/BIMCompNet/multimodal/best_1000.mdl \
104
+ --embeddings_path embeddings.pt \
105
+ --yaml_path ./描述信息.yaml \
106
+ --output_dir ./results
107
+
108
+ # 评测 IFCNet 多模态
109
+ python bimclip.py --mode eval --data_type MULTI_MODAL \
110
+ --ifcnet_root /path/to/IFCNetCorePly/IFCNetCore \
111
+ --model_path /path/to/IFCNet/best_ifcnet.mdl \
112
+ --embeddings_path ifcnet_embeddings.pt \
113
+ --yaml_path ./描述信息.yaml \
114
+ --output_dir ./results
115
+ ```
116
+
117
+ ### 文本嵌入文件
118
+
119
+ 文本嵌入文件包含在 GitHub 仓库中:
120
+
121
+ | 文件 | 类别数 | 适用数据集 |
122
+ |------|--------|-----------|
123
+ | `embeddings.pt` | 57 | BIMCompNet(全类别) |
124
+ | `ifcnet_embeddings.pt` | 20 | IFCNet |
125
+ | `model_net_10_embeddings.pt` | 10 | ModelNet-10 |
126
+ | `model_net_40_embeddings.pt` | 40 | ModelNet-40 |
127
+
128
+ > 请使用与评测数据集对应的嵌入文件,**切勿混用**。
129
+
130
+ ### 数据集获取
131
+
132
+ BIMCompNet 由西安理工大学 606 实验室托管维护,请访问以下页面申请获取或下��:
133
+
134
+ 👉 **[https://bimcompnet-606lab.xaut.edu.cn/](https://bimcompnet-606lab.xaut.edu.cn/)**
135
+
136
+ ### ModelNet 多模态扩充数据集
137
+
138
+ `ModelNet10.zip` 和 `ModelNet40.zip` 是基于原始 ModelNet 网格,通过本文多模态数据构建流程扩充点云与多视角图像后的完整数据集。每个 zip 内部目录结构如下:
139
+
140
+ ```
141
+ ModelNet{10|40}/
142
+ └── {类别}/
143
+ ├── train/
144
+ │ ├── obj/ # 原始网格文件(.obj)
145
+ │ ├── ply/ # 从网格采样的点云(1024 点,.ply)
146
+ │ └── png/
147
+ │ └── {样本名}/
148
+ │ └── Edges/ # 12 个边缘渲染视角图(0.png – 11.png)
149
+ └── test/
150
+ └── (结构相同)
151
+ ```
152
+
153
+ 点云通过对网格表面均匀采样获得(每个模型 1024 个点)。多视角图像采用边缘渲染方式,从 12 个固定视角渲染,相机布置策略与 BIMCompNet 数据集保持一致。
154
+
155
+ ### 第三方权重(ULIP-2 基线)
156
+
157
+ ULIP-2 官方预训练 PointBERT 权重(866 MB)已包含在本仓库中:
158
+
159
+ ```
160
+ ULIP2/ULIP-2-PointBERT-8k-xyz-pc-slip_vit_b-objaverse-pretrained.pt
161
+ ```
162
+
163
+ 也可从原始来源直接下载:
164
+ ```
165
+ https://huggingface.co/datasets/SFXX/ulip/resolve/main/ULIP-2/pretrained_models/ULIP-2-PointBERT-8k-xyz-pc-slip_vit_b-objaverse-pretrained.pt
166
+ ```
167
+
168
+ ---
169
+
170
+ ## 架构简介
171
+
172
+ BIM-CLIP 使用三个模态编码器(图像用 ViT,点云用 PointNet,网格用 MeshNet),通过对比对齐将各模态特征投影到 1536 维语言嵌入空间(以 `text-embedding-ada-002` 为语义锚点),再经**语言引导的跨模态注意力(CMA)模块**进行融合。微调阶段仅更新 CMA 模块(10.62M 参数)。
173
+
174
+ ---
175
+
176
+ ## 引用
177
+
178
+ ```bibtex
179
+ @article{meng2026bimclip,
180
+ title={BIM-CLIP: Language-Guided Multimodal Representation Learning for BIM Component Recognition},
181
+ author={Meng, Haining and Dong, Haoyang and Yang, Mingsong and Fan, Xing and Hei, Xinhong},
182
+ journal={[待期刊接受后更新]},
183
+ year={2026}
184
+ }
185
+ ```