BGLab commited on
Commit
241e634
·
verified ·
1 Parent(s): 80333c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +99 -9
README.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
  ---
3
  pretty_name: MicroGen3D
4
  tags:
@@ -17,27 +16,118 @@ language:
17
  - en
18
  ---
19
 
20
-
21
  # microgen3D
22
 
23
  [![Code](https://img.shields.io/badge/GitHub-Code-black?logo=github)](https://github.com/baskargroup/MicroGen3D)
24
 
25
  ## Dataset Summary
26
 
27
- **microgen3D** is a dataset of 3D voxelized microstructures designed for training, evaluation, and benchmarking of generative models—especially Conditional Latent Diffusion Models (LDMs). It includes both synthetic (Cahn-Hilliard) and experimental microstructures with multiple phases (2 to 3). The voxel grids range from `64³` up to `128×128×64`.
28
 
29
  The dataset consists of three microstructure types:
30
  - **Experimental microstructures**
31
- - **2-phase Cahn-Hilliard microstructures**
32
- - **3-phase Cahn-Hilliard microstructures**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- The two Cahn-Hilliard datasets are thresholded versions of the same simulation source. For each dataset type, we also provide pretrained generative model weights, comprising:
35
- - `vae.ckpt` – Variational Autoencoder
36
- - `fp.ckpt` Feature Predictor
37
- - `ddpm.ckpt` – Denoising Diffusion Probabilistic Model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  ---
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  ## 📁 Repository Structure
42
 
43
  ```
 
 
1
  ---
2
  pretty_name: MicroGen3D
3
  tags:
 
16
  - en
17
  ---
18
 
 
19
  # microgen3D
20
 
21
  [![Code](https://img.shields.io/badge/GitHub-Code-black?logo=github)](https://github.com/baskargroup/MicroGen3D)
22
 
23
  ## Dataset Summary
24
 
25
+ **microgen3D** is a dataset of 3D voxelized microstructures designed for training, evaluation, and benchmarking of generative models—especially Conditional Latent Diffusion Models (LDMs). It includes both synthetic (CahnHilliard) and experimental microstructures with multiple phases (2 to 3). The voxel grids range from `64³` up to `128×128×64`.
26
 
27
  The dataset consists of three microstructure types:
28
  - **Experimental microstructures**
29
+ - **2-phase CahnHilliard microstructures**
30
+ - **3-phase CahnHilliard microstructures**
31
+
32
+ The two Cahn–Hilliard datasets are thresholded versions of the same simulation source.
33
+ For each dataset type, we also provide pretrained generative model weights:
34
+ - `vae.pt` – Variational Autoencoder
35
+ - `fp.pt` – Feature Predictor
36
+ - `ddpm.pt` – Denoising Diffusion Probabilistic Model
37
+
38
+ ---
39
+
40
+ ## 📂 Dataset Overview
41
+
42
+ | File Name | Size | Description |
43
+ |------------------------------------|----------|-------------|
44
+ | `CH_three_phase.tar.gz` | ~5.57 GB | Full **three-phase Cahn–Hilliard** dataset with 3D microstructures and morphological descriptors. |
45
+ | `CH_two_phase.tar.gz` | ~4.37 GB | Full **two-phase Cahn–Hilliard** dataset with 3D microstructures and morphological descriptors. |
46
+ | `experimental.tar.gz` | ~843 MB | **Experimental microstructure** dataset from real-world samples, voxelized for modeling. |
47
+ | `sample_CH_three_phase.tar.gz` | ~12.2 MB | Small subset of the three-phase dataset for testing/demo purposes. |
48
+ | `sample_CH_two_phase.tar.gz` | ~9.59 MB | Small subset of the two-phase dataset for testing/demo purposes. |
49
+
50
+ ---
51
+
52
+ ## 📊 Detailed Dataset Information
53
+
54
+ ### **CH Two-Phase Dataset**
55
+ - **File:** `CH_two_phase.tar.gz`
56
+ - **Total Microstructures:** 47,119
57
+ - **Splits:** 10 (Train: 9, Validation: 1)
58
+ - **Microstructure Shape:** `(128, 128, 64)`
59
+ - **Attributes per Key:** 34
60
+ - **Example Attributes:**
61
+ - `ABS_f_D`: 0.391171
62
+ - `CT_f_D_tort1`: 0.293271
63
+ - `phi`: 0.556
64
+ - `chi`: 2.33
65
+ - `source`: direct/data_chi_2.330_phi_0.556_step_235.txt
66
+
67
 
68
+ ---
69
+
70
+ ### **CH Three-Phase Dataset**
71
+ - **File:** `CH_three_phase.tar.gz`
72
+ - **Total Microstructures:** 45,980
73
+ - **Splits:** 10 (Train: 9, Validation: 1)
74
+ - **Microstructure Shape:** `(128, 128, 64)`
75
+ - **Attributes per Key:** 13
76
+ - **Example Attributes:**
77
+ - `Interface_AM`: 113702.0
78
+ - `Interface_DM`: 96692.0
79
+ - `phi`: 0.514
80
+ - `chi`: 2.2
81
+ - `source`: data_chi_2.200_phi_0.514.h5____172.txt
82
+
83
+ ---
84
+
85
+ ### **Experimental Microstructure Dataset**
86
+ - **File:** `experimental.tar.gz`
87
+ - **Total Microstructures:** 21,421
88
+ - **Train Samples:** 19,278
89
+ **Validation Samples:** 2,143
90
+ - **Microstructure Shape:** `(64, 64, 64)`
91
+ - **Attributes per Key:** 23
92
+ - **Example Attributes:**
93
+ - `ABS_f_D`: 0.591423
94
+ - `CT_f_D_tort1`: 0.159534
95
+ - `source`: /work/mech-ai-scratch/nirmal/generative_model_data/experimental/grid_cut/graspi/morphs/CB_120_260.txt
96
 
97
  ---
98
 
99
+ ## 📥 Download Examples
100
+
101
+ ### Using Python
102
+ ```python
103
+ from huggingface_hub import hf_hub_download
104
+
105
+ # Download sample dataset
106
+ hf_hub_download(
107
+ repo_id="BGLab/microgen3D",
108
+ filename="data/experimental.tar.gz",
109
+ repo_type="dataset",
110
+ local_dir=""
111
+ )
112
+
113
+ # Download experimental pretrained weights
114
+ import os
115
+ weights_local_dir = ""
116
+ os.makedirs(weights_local_dir, exist_ok=True)
117
+
118
+ files = {
119
+ "weights/experimental/vae.pt": "vae.pt",
120
+ "weights/experimental/fp.pt": "fp.pt",
121
+ "weights/experimental/ddpm.pt": "ddpm.pt"
122
+ }
123
+
124
+ for remote_path, local_name in files.items():
125
+ downloaded_path = hf_hub_download(
126
+ repo_id="BGLab/microgen3D",
127
+ filename=remote_path,
128
+ repo_type="dataset"
129
+ )
130
+
131
  ## 📁 Repository Structure
132
 
133
  ```