kerrj / lerf

Code for LERF: Language Embedded Radiance Fields
https://www.lerf.io/
MIT License
668 stars 65 forks source link

Fix missing `import sys` in lerf_field.py #58

Closed barak-itkin closed 11 months ago

barak-itkin commented 1 year ago

When CUDA is not available, lerf_field.py prints to sys.stderr upon import. However, the file is missing an import to sys, thus causing an exception to be raised and failing the import.

When running ns-install-cli as part of building a Docker container (where CUDA is only available during runtime, not during build), the above error means ns-install-cli fails and prevents installing the lerf code in the Docker container.