jeff-regier / Celeste.jl

Scalable inference for a generative model of astronomical images
MIT License
183 stars 28 forks source link

pixel counters + don't precompute sky #616

Closed jeff-regier closed 7 years ago

jeff-regier commented 7 years ago

By not precomputing the sky background, the memory required to store the Image instances drops by nearly 50%. For benchmark_quarter_degree.jl, memory usage falls from 1.7 GB to 876 MB. Huzzah!

On master:

Base.summarysize(ctni[4]) = 1714282080

On jcr/sky2

Base.summarysize(ctni[4]) = 876331960

Runtime doesn't change by more than a couple of percent.

I also added pixel counters in this PR but I'm not logging their values yet.

@kpamnany