This utility provides a simple and efficient way to convert Nvidia Instant-NGP snapshot files into JSON format. It's designed to help researchers and developers easily port their trained Neural Radiance Fields (NeRF) models into various applications by overcoming the inconvenience of dealing with gzipped MessagePack serialized data.
Nvidia Instant-NGP provides an option to save snapshots of trained NeRF models, which are stored in a gzipped MessagePack serialized format. This format, while efficient for storage, is not immediately usable in other applications that require a JSON format. This utility simplifies the process by converting these snapshot files into a more accessible JSON format.
- Easy Conversion: Convert Nvidia Instant-NGP snapshot files to JSON with a simple command.
- Efficient Processing: Handles gzipped MessagePack serialized data seamlessly.
- Wide Applicability: Useful for researchers and developers looking to integrate NeRF models into various platforms.
Ensure you have a C++ compiler and make utility installed on your system. This project also includes zlib
for decompression and nlohmann/json
for JSON handling.
- Clone the repository:
git clone https://github.com/fallinbryan/NGPToJson.git
- Navigate to the project directory:
cd NGPToJson
- Compile the utility:
make ngp2json
Run the utility with the path to your Nvidia Instant-NGP snapshot file:
./ngp2json path/to/snapshot/file path/to/snapshot.json
The utility will output a JSON file containing the trained NeRF model.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Bryan Fallin - [email protected]
Project Link: https://github.com/fallinbryan/NGPToJson
- Nvidia Instant-NGP
- nlohmann/json for JSON handling
- zlib for decompression support
- ChatGPT-4 by OpenAI for assistance with C++ code