plenoptic-org / plenoptic

Visualize/test models for visual representation by synthesizing images.
https://plenoptic.readthedocs.io/en/latest/
MIT License
61 stars 9 forks source link

Make `penalize_range` more efficient #287

Closed billbrod closed 3 months ago

billbrod commented 3 months ago

Small change: use clip instead of boolean indexing for penalize_range. Computes the same thing, but is much more efficient.