ML4GW / aframe-legacy

Detecting binary black hole mergers in LIGO with neural networks
MIT License
18 stars 17 forks source link

MDC inference #469

Closed alecgunny closed 10 months ago

alecgunny commented 11 months ago

Implements a close copy of the infer code to run on MDC data. Should run in more or less exactly the same way:

pinto -p mdc run -e ../.env deploy-mdc --typeo :deploy-mdc

I implemented things using the new inference setup in #468 , which also requires ML4GW/hermes#48. If this is a headache, it should be pretty straightforward to just break the x array up into its two batch elements and make 2 requests like normal.

I have a fork of the ML MDC repo that has a working conda environment you can use to run the data generation and evaluation. The execution is pretty simple, they're just python scripts and their --help strings are pretty self-explanatory. My script will generate files in the exact format you need to run the evaluate.py. The only bummer is data generation takes a long time.

Let me know if folks run into issues with any of this and I can dig through my old implementation (which you might find helpful as well).