YAML Metadata Warning: empty or missing yaml metadata in repo card
Check out the documentation for more information.
Object Folder Compression Scripts
This directory contains scripts to compress and decompress all object folders in the Objaverse dataset.
Directory Structure
The dataset is organized as follows:
imgs/
├── 000-136/ # Scene directory
│ ├── <object_id>/ # Object folder containing images and data
│ │ ├── albedo_*.png
│ │ ├── color_*.png
│ │ ├── depth_*.exr
│ │ ├── normal_*.png
│ │ ├── orm_*.png
│ │ ├── object.ply
│ │ ├── camera.json
│ │ └── lighting.json
│ └── ...
├── 000-137/ # Another scene directory
└── ...
Scripts
zip_all_objects.sh
Compresses all object folders into individual .zip files with maximum compression.
Usage:
./zip_all_objects.sh
What it does:
- Iterates through all scene directories (000-136, 000-137, etc.)
- For each object folder within a scene, creates a compressed .zip file
- Uses maximum compression (-9) to minimize file sizes
- Skips objects that are already zipped
- Provides progress tracking and logging
Output:
- Each object folder gets compressed into
<object_id>.zip - Zip files are created in the same directory as the original object folder
- Progress is displayed during execution
unzip_all_objects.sh
Decompresses all .zip files back to their original folder structure.
Usage:
./unzip_all_objects.sh
What it does:
- Iterates through all scene directories
- Extracts all .zip files back to their original object folders
- Skips extraction if the folder already exists
- Maintains the original directory structure
- Provides progress tracking and logging
Example
Before compression:
000-136/
├── 62a4c16ac8084bf88aef8daba8f15249/
│ ├── albedo_00.png
│ ├── color_0_00.png
│ └── ...
└── 62a8be2e2d1b4e5c878304fc63cf3de6/
├── albedo_00.png
└── ...
After compression:
000-136/
├── 62a4c16ac8084bf88aef8daba8f15249/ # Original folder (can be deleted after zipping)
├── 62a4c16ac8084bf88aef8daba8f15249.zip # Compressed archive
├── 62a8be2e2d1b4e5c878304fc63cf3de6/
└── 62a8be2e2d1b4e5c878304fc63cf3de6.zip
Notes
- The compression typically achieves significant space savings
- Each object folder contains ~250+ files (images, depth maps, etc.)
- The scripts are designed to be resumable - they skip already processed items
- Progress is logged to help track completion on large datasets
- Both scripts provide detailed progress information and error handling
- Downloads last month
- 8