-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shapes3D dataset is not included in the data download script #18
Comments
Hi, To use it in disentanglement_lib, change disentanglement_lib/disentanglement_lib/data/ground_truth/shapes3d.py Lines 28 to 32 in a070670
to SHAPES3D_PATH = os.path.join(
os.environ.get("DISENTANGLEMENT_LIB_DATA", "."), "3dshapes", "3dshapes.h5"
) and disentanglement_lib/disentanglement_lib/data/ground_truth/shapes3d.py Lines 51 to 56 in a070670
to with h5py.File(SHAPES3D_PATH, 'r') as dataset:
images = dataset['images'][()]
labels = dataset['labels'][()]
n_samples = images.shape[0] Hope that helps. |
It helps, I have found the |
Convert h5py to npz using the following in a python file:
|
@neonkitchen I think you should resize the saved image array. Because the default implementation of Shapes3D dataset requires to reshape the loaded image when using. |
`import h5py hf = h5py.File('./3dshapes.h5', 'r') |
Also the
.npz
file listed indisentanglement_lib/disentanglement_lib/data/ground_truth/shapes3d.py
Line 28 in a070670
is not to be found anywhere on the web.
The text was updated successfully, but these errors were encountered: