You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

P19-Host-r

A host locator trained on the P19 sample (galaxies with SDSS spectroscopic redshifts selected as in Pasquet et al. 2019, PS1 images), each galaxy with synthetic transient positions drawn uniformly in area within three effective radii of its PS1 r-band Sersic ellipse; the number of positions per galaxy, n = max[1, round((R_e / 8 arcsec)^6)], grows with its size (639,750 positions for 481,589 galaxies, most galaxies with a single one), using only the r band. It uses no observed transient.

Model

  • Backbone: the DELIGHT convolutional backbone (Förster et al. 2022), shared by the five stamp levels.
  • Input: PS1 stamps of 30 x 30 pixels at five levels (0.25 arcsec per pixel at level 0, doubling at each level), band(s) r.
  • Output: the host offset (x, y).

The host offset is predicted in level-0 pixels of 0.25 arcsec from the stamp centre. Each prediction is the average of the eight rotations and flips of the stamp, transformed back to the original orientation. M is the mean of min(r, 1), with r the residual distance in units of the host's SEP ellipse scaled by three (semi-axes A = 3a, B = 3b); RMSE_d is the root mean square of the residual distance.

Training data and cross-validation

Trained on PRISM-Astro/h2f_ps1_pasquet_autolabeling_radius_norm_p6 with five-fold cross-validation: there is one model per fold, trained on the other four folds and validated on its own fold. The host locators are tested on the real host-transient pairs of PRISM-Astro/h2f_delight_test.

For each fold we keep the checkpoint of the epoch with the lowest validation M.

Validation results

Validation metrics of each fold model on its own validation fold (synthetic transient positions for the models trained on synthetic labels, real hand-labelled pairs for DELIGHT-Real).

Fold Epoch Step M RMSE_d (arcsec)
1 40 509560 0.02408 0.639
2 40 511880 0.02438 0.576
3 38 489174 0.02412 0.604
4 39 499980 0.02415 0.597
5 38 484462 0.02458 0.625
Mean ± std 0.02426 ± 0.00019 0.608 ± 0.022

Files

config.yaml            Hydra configuration of the run (model, dataset, training arguments)
selection.json         checkpoint, epoch, step and validation metrics of each fold
fold_k/model.safetensors
fold_k/trainer_state.json

Usage

Access is gated: request access on this page and log in (huggingface-cli login or HF_TOKEN) before downloading.

from hydra.utils import instantiate
from huggingface_hub import hf_hub_download
from omegaconf import OmegaConf
from safetensors.torch import load_file

repo = "PRISM-Astro/p19-host-r"
cfg = OmegaConf.load(hf_hub_download(repo, "config.yaml"))
model = instantiate(cfg.model, _convert_="partial")   # needs the PRISM package
model.load_state_dict(load_file(hf_hub_download(repo, "fold_1/model.safetensors")))
model.eval()

config.yaml is the Hydra configuration of the run, with dataset.fold_idx: null; the model of fold_k was trained on the other four folds of the dataset's fold column and validated on fold k. All fold models were trained with an effective batch of 40 stamps (per-device batch times the number of GPUs, which varied between folds), so the per-device batch size in the file does not apply to every fold.

The input stamps must be preprocessed as in training (band selection and order, inverse hyperbolic sine of the g band when it is used, five levels); see prism.dataset and scripts/inferencia_test.py in the code.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Datasets used to train PRISM-Astro/p19-host-r

Collection including PRISM-Astro/p19-host-r