Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## MPI3D Disentanglement Datasets
|
| 2 |
+
|
| 3 |
+
<img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/platform.jpg" width="418" height="280" /> <img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/platform2.jpg" width="418" height="281" />
|
| 4 |
+
|
| 5 |
+
MPI3D datasets have been introduced to benchmark representations learning algorithms across simulated and real-world environments. The first transfer learning results of unsupervised disentangled representations are presented in our [NeurIPS 2019 paper.](https://proceedings.neurips.cc/paper/2019/hash/d97d404b6119214e4a7018391195240a-Abstract.html)
|
| 6 |
+
|
| 7 |
+
---------------------------------
|
| 8 |
+
*UPDATE:* The download links have been updated.
|
| 9 |
+
---------------------------------
|
| 10 |
+
|
| 11 |
+
The dataset is also used in the [NeurIPS Disentanglement Challenge.](http://www.disentanglement-challenge.com)
|
| 12 |
+
If you use this dataset in your work then kindly cite us.
|
| 13 |
+
```
|
| 14 |
+
@inproceedings{NEURIPS2019_d97d404b,
|
| 15 |
+
author = {Gondal, Muhammad Waleed and Wuthrich, Manuel and Miladinovic, Djordje and Locatello, Francesco and Breidt, Martin and Volchkov, Valentin and Akpo, Joel and Bachem, Olivier and Sch\"{o}lkopf, Bernhard and Bauer, Stefan},
|
| 16 |
+
booktitle = {Advances in Neural Information Processing Systems},
|
| 17 |
+
editor = {H. Wallach and H. Larochelle and A. Beygelzimer and F. d\textquotesingle Alch\'{e}-Buc and E. Fox and R. Garnett},
|
| 18 |
+
pages = {},
|
| 19 |
+
publisher = {Curran Associates, Inc.},
|
| 20 |
+
title = {On the Transfer of Inductive Bias from Simulation to the Real World: a New Disentanglement Dataset},
|
| 21 |
+
url = {https://proceedings.neurips.cc/paper/2019/file/d97d404b6119214e4a7018391195240a-Paper.pdf},
|
| 22 |
+
volume = {32},
|
| 23 |
+
year = {2019}
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Datasets Information
|
| 29 |
+
|
| 30 |
+
There are following four different datasets. The gifs are created using [disentanglement_lib](https://github.com/google-research/disentanglement_lib) visualization tool.
|
| 31 |
+
|
| 32 |
+
### 1. Real world simple shapes (mpi3d_real).
|
| 33 |
+
|
| 34 |
+
<img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/real1.gif"/> <img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/real2.gif" />
|
| 35 |
+
|
| 36 |
+
### 2. Realistic rendered images (mpi3d_realistic).
|
| 37 |
+
|
| 38 |
+
<img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/realistic1.gif" /> <img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/realistic2.gif" />
|
| 39 |
+
|
| 40 |
+
### 3. Simplistic rendered images (mpi3d_toy).
|
| 41 |
+
|
| 42 |
+
<img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/toy1.gif" /><img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/toy2.gif" />
|
| 43 |
+
|
| 44 |
+
### 4. Complex real world shapes (mpi3d_complex).
|
| 45 |
+
|
| 46 |
+
<img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/complex1.gif" /><img src="https://github.com/rr-learning/disentanglement_dataset/blob/master/sample_gifs/complex2.gif" />
|
| 47 |
+
|
| 48 |
+
The **first three datasets** consists of 1,036,800 images, corresponding to all the possible combinations of the following factors of variation:
|
| 49 |
+
|
| 50 |
+
|Factors|Possible Values|
|
| 51 |
+
|---|---|
|
| 52 |
+
|object_color|white=0, green=1, red=2, blue=3, brown=4, olive=5|
|
| 53 |
+
|object_shape|cone=0, cube=1, cylinder=2, hexagonal=3, pyramid=4, sphere=5|
|
| 54 |
+
|object_size|small=0, large=1|
|
| 55 |
+
|camera_height|top=0, center=1, bottom=2|
|
| 56 |
+
|background_color|purple=0, sea green=1, salmon=2|
|
| 57 |
+
|horizontal_axis|0,...,39|
|
| 58 |
+
|vertical_axis|0,...,39|
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
The **real-world complex dataset** consists of 460,800 images, containing the combinations of the following factors of variations.
|
| 62 |
+
|
| 63 |
+
|Factors|Possible Values|
|
| 64 |
+
|---|---|
|
| 65 |
+
|object_color|yellow=0, green=1, olive=2, red=3|
|
| 66 |
+
|object_shape|coffee-cup=0, tennis-ball=1, croissant=2, beer-cup=3|
|
| 67 |
+
|object_size|small=0, large=1|
|
| 68 |
+
|camera_height|top=0, center=1, bottom=2|
|
| 69 |
+
|background_color|purple=0, sea green=1, salmon=2|
|
| 70 |
+
|horizontal_axis|0,...,39|
|
| 71 |
+
|vertical_axis|0,...,39|
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
So far we only provide the datasets in 64x64 resolution. Higher resolution versions will be made available in the near future.
|
| 75 |
+
|
| 76 |
+
## Reading the Datasets
|
| 77 |
+
The datasets are provided in the form of numpy arrays. Once the data is loaded, you can use array.reshape([6,6,2,3,3,40,40,64,64,3]) to obtain an array where the first 7 dimensions corresponds to data generative factors as in the table above and the last three to the image dimensions. Note that for real-world complex dataset you need to use array.reshape([4,4,2,3,3,40,40,64,64,3]).
|
| 78 |
+
|
| 79 |
+
```
|
| 80 |
+
import numpy as np
|
| 81 |
+
data = np.load('./mpi3d_real.npz')['images']
|
| 82 |
+
|
| 83 |
+
# To visualize each factor of the data independently, you can reshape
|
| 84 |
+
# the array as the following.
|
| 85 |
+
|
| 86 |
+
data = data.reshape([6,6,2,3,3,40,40,64,64,3])
|
| 87 |
+
|
| 88 |
+
# For real-world complex dataset use:
|
| 89 |
+
data = data.reshape([4,4,2,3,3,40,40,64,64,3])
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
## Downloads
|
| 93 |
+
|
| 94 |
+
Use the following links to download the datasets.
|
| 95 |
+
|
| 96 |
+
1. mpi3d_toy (simplistic rendered): [link](https://huggingface.co/datasets/waleedgondal/mpi3d/resolve/main/mpi3d_toy.npz)
|
| 97 |
+
2. mpi3d_realistic (realistic rendered): [link](https://huggingface.co/datasets/waleedgondal/mpi3d/resolve/main/mpi3d_realistic.npz)
|
| 98 |
+
3. mpi3d_real (real-world images): [link](https://huggingface.co/datasets/waleedgondal/mpi3d/resolve/main/mpi3d_real.npz)
|
| 99 |
+
4. mpi3d_real_complex (real-world complex shapes images) : [link](https://drive.google.com/file/d/1Tp8eTdHxgUMtsZv5uAoYAbJR1BOa_OQm/view?usp=sharing)
|
| 100 |
+
|
| 101 |
+
## Feedback
|
| 102 |
+
Please send any feedback to waleed.gondal10@gmail.com
|
| 103 |
+
|
| 104 |
+
## License
|
| 105 |
+
|
| 106 |
+
This work is licensed under a Creative Commons Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/).
|
| 107 |
+
|