python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Download the Gaia XP DR3 data from Gaia ESA Archive (total
size: 3.2 TB) and place it in the data/csv directory. The following command downloads only the
first 3111 files (1.3 GB).
wget -P data/csv https://cdn.gea.esac.esa.int/Gaia/gdr3/Spectroscopy/xp_continuous_mean_spectrum/XpContinuousMeanSpectrum_000000-003111.csv.gz
The data preparation step is handled by PEST.
python pest/gaia_calibrate.py
The model training step is handled by Spherinator.
spherinator fit --config spherinator/gaia_vae_8_nll_normal.yaml
Path to the checkpoint file of the trained model (e.g., lightning_logs/version_0/checkpoints/<name>.ckpt).
python onnx/export_onnx.py <path_to_checkpoint>
The generation of the HiPS representation and catalog is handled by HiPSter.
hipster --config hipster/gaia_vae_8_nll_normal.yaml
Serve the HiPSter representation
python -m http.server 8083 -d hipster_output
and open http://localhost:8083 in your web browser.