I think the structure of the folders after extracting from h5 files are not quite right.
The cell that removes objects that only has "success" or "failures" runs so that it removes all the data.
I guess it's suppose to check if the name of the image file ends in success or failure. But it is implemented so that it's comparing in the folder where it has 3 folders = [gelsightA, gelsightB, kineticA_rgb].
This leads to erase all files since there is no name that ends in "success" or "failure"
I think the structure of the folders after extracting from h5 files are not quite right.
The cell that removes objects that only has "success" or "failures" runs so that it removes all the data.
I guess it's suppose to check if the name of the image file ends in success or failure. But it is implemented so that it's comparing in the folder where it has 3 folders = [gelsightA, gelsightB, kineticA_rgb].
This leads to erase all files since there is no name that ends in "success" or "failure"