instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

Can't export screenshots in EXR format from Python

Open duklin opened this issue 1 year ago • 5 comments

When running

python scripts/run.py \
    --scene /path/to/transforms.json 
    --load_snapshot /path/to/snapshot.ingp 
    --screenshot_transforms /path/to/transforms.json 
    --screenshot_dir /path/to/screenshots 
    --width 256 --height 256

I get an error

Traceback (most recent call last):
  File "/home/duklin/repos/instant-ngp/scripts/run.py", line 284, in <module>
    cam_matrix = f.get("transform_matrix", f["transform_matrix_start"])
KeyError: 'transform_matrix_start'

Also, there is no progress bar and no support for exporting the screenshots in exr format.

duklin avatar Aug 10 '23 08:08 duklin

This is now fixed with #1421

duklin avatar Aug 10 '23 08:08 duklin

When running

python scripts/run.py \
    --scene /path/to/transforms.json 
    --load_snapshot /path/to/snapshot.ingp 
    --screenshot_transforms /path/to/transforms.json 
    --screenshot_dir /path/to/screenshots 
    --width 256 --height 256

I get an error

Traceback (most recent call last):
  File "/home/duklin/repos/instant-ngp/scripts/run.py", line 284, in <module>
    cam_matrix = f.get("transform_matrix", f["transform_matrix_start"])
KeyError: 'transform_matrix_start'

Also, there is no progress bar and no support for exporting the screenshots in exr format.

Have you solved the KeyError: 'transform_matrix_start' problem yet?

CaptainEven avatar Oct 07 '23 08:10 CaptainEven

Yes, the fix is here

duklin avatar Oct 07 '23 09:10 duklin

Yes, the fix is here

Good job!

CaptainEven avatar Oct 09 '23 06:10 CaptainEven

Thank you for your helpful job!

repeaterI avatar Aug 03 '24 17:08 repeaterI