Update README.md
Browse files
README.md
CHANGED
|
@@ -11,13 +11,32 @@ Alternatively, please download them separately (for i from 1 to 24) at [./NeuMER
|
|
| 11 |
|
| 12 |

|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
## Dataset formation
|
| 15 |
|
| 16 |
To form the AugMERL dataset, we first augment the original [MERL dataset](https://www.merl.com/research/downloads/BRDF) with color channel permutation. The first group materials (1-600) are all without interpolation. Then, we augment the BRDFs via direct linear interpolation, forming three groups of materials (601-1200, 1201-1800, 1801-2400), where each group follows the same color channel permutation as the first group ([Sec 3.1](https://arxiv.org/abs/2411.12015)).
|
| 17 |
|
| 18 |
Next, we adopt neural fields as a low-dimensional, continuous representation for materials, fitting them to individual materials in Aug-MERL to create a new dataset of neural material representations, Neural MERL (NeuMERL).
|
| 19 |
|
| 20 |
-
## Color channel permutation
|
| 21 |
|
| 22 |
Color channel permutation: RGB (1-100), RBG (101-200), GRB (201-300), GBR (301-400), BRG (401-500), GRB (501-600), similarly afterwards.
|
| 23 |
|
|
@@ -32,9 +51,15 @@ elif rgb_type == 5: brdf = brdf[..., [2, 0, 1]] # merl_5
|
|
| 32 |
elif rgb_type == 0: brdf = brdf[..., [2, 1, 0]] # merl_6
|
| 33 |
```
|
| 34 |
|
| 35 |
-
## BRDF interpolation
|
|
|
|
|
|
|
| 36 |
|
| 37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
```
|
| 40 |
MERL_BRDF1_name MERL_BRDF2_name \alpha
|
|
@@ -48,15 +73,17 @@ $$
|
|
| 48 |
|
| 49 |
## Citation
|
| 50 |
|
|
|
|
|
|
|
| 51 |
```
|
| 52 |
@misc{
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
}
|
| 62 |
```
|
|
|
|
| 11 |
|
| 12 |

|
| 13 |
|
| 14 |
+
## Usage
|
| 15 |
+
|
| 16 |
+
The dataset is stored in a numpy file, with all the MLP weights linearized in a single array. For NBRDF MLP architecture use, please refer to [./nbrdf-release.py](./nbrdf-release.py)
|
| 17 |
+
|
| 18 |
+
- Input: Cartesian coordinate for positional samples (hx, hy, hz, dx, dy, dz).
|
| 19 |
+
- Output: MERL reflectance value.
|
| 20 |
+
- To convert it back to model weights `.pth`, update the example [example-brdf.pth](./example-brdf.pth).
|
| 21 |
+
- To then convert it back to MERL binary, load the model from `.pth` and record the inference results with all positional input.
|
| 22 |
+
- For details, please refer to [Github](https://github.com/PeterHUistyping/NeuMaDiff) repo.
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
fc1.weight (21, 6)
|
| 26 |
+
fc1.bias (21,)
|
| 27 |
+
fc2.weight (21, 21)
|
| 28 |
+
fc2.bias (21,)
|
| 29 |
+
fc3.weight (3, 21)
|
| 30 |
+
fc3.bias (3,)
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
## Dataset formation
|
| 34 |
|
| 35 |
To form the AugMERL dataset, we first augment the original [MERL dataset](https://www.merl.com/research/downloads/BRDF) with color channel permutation. The first group materials (1-600) are all without interpolation. Then, we augment the BRDFs via direct linear interpolation, forming three groups of materials (601-1200, 1201-1800, 1801-2400), where each group follows the same color channel permutation as the first group ([Sec 3.1](https://arxiv.org/abs/2411.12015)).
|
| 36 |
|
| 37 |
Next, we adopt neural fields as a low-dimensional, continuous representation for materials, fitting them to individual materials in Aug-MERL to create a new dataset of neural material representations, Neural MERL (NeuMERL).
|
| 38 |
|
| 39 |
+
### Color channel permutation
|
| 40 |
|
| 41 |
Color channel permutation: RGB (1-100), RBG (101-200), GRB (201-300), GBR (301-400), BRG (401-500), GRB (501-600), similarly afterwards.
|
| 42 |
|
|
|
|
| 51 |
elif rgb_type == 0: brdf = brdf[..., [2, 1, 0]] # merl_6
|
| 52 |
```
|
| 53 |
|
| 54 |
+
### BRDF interpolation
|
| 55 |
+
|
| 56 |
+
For material from 601 to 2400, we interpolate the BRDFs of two materials from the original MERL dataset, forming a new BRDF.
|
| 57 |
|
| 58 |
+
- For 601-1200, i=0;
|
| 59 |
+
- For 1201-1800, i=1;
|
| 60 |
+
- For 1801-2400, i=2.
|
| 61 |
+
|
| 62 |
+
Please refer to [./interpolate/interpolate_interpolation_{i}.txt](https://huggingface.co/datasets/Peter2023HuggingFace/NeuMERL/tree/main/interpolate), each line is in the format of
|
| 63 |
|
| 64 |
```
|
| 65 |
MERL_BRDF1_name MERL_BRDF2_name \alpha
|
|
|
|
| 73 |
|
| 74 |
## Citation
|
| 75 |
|
| 76 |
+
If you found the paper or base model useful, please consider citing,
|
| 77 |
+
|
| 78 |
```
|
| 79 |
@misc{
|
| 80 |
+
NeuMaDiff2024,
|
| 81 |
+
title={NeuMaDiff: Neural Material Synthesis via Hyperdiffusion},
|
| 82 |
+
author={Chenliang Zhou and Zheyuan Hu and Alejandro Sztrajman and Yancheng Cai and Yaru Liu and Cengiz Oztireli},
|
| 83 |
+
year={2024},
|
| 84 |
+
eprint={2411.12015},
|
| 85 |
+
archivePrefix={arXiv},
|
| 86 |
+
primaryClass={cs.GR},
|
| 87 |
+
url={https://arxiv.org/abs/2411.12015},
|
| 88 |
}
|
| 89 |
```
|