Views
No views yet
metric_type in the architecture.yml as it says if the model is trained on the full metric or distortion. If distortion, then you can combine with the Minkowski metrics from our Github repo to get the full one.train_data.yml to see what was the training grid on which the model was trained.EinFields/
├── flax_models/ # Core model implementations
│ ├── __init__.py # Model factory and utilities
│ ├── activations.py # Activation functions
│ ├── mlp.py # Multi-Layer Perceptron
│ ├── siren.py # SIREN architecture
│ └── wire.py # WIRE
├── gw/ # GW metrics
│ └── cartesian/
│ ├── silu/ # SILU activation models
│ ├── siren/ # SIREN models
│ └── wire/ # WIRE models
├── schwarzschild/ # Schwarzschild black hole models
│ └── spherical/
│ ├── close_event_horizon/
│ └── perihelion/
├── kerr/ # Kerr black hole models
│ ├── boyer_lindquist/
└── └── kerr_schild_cartesian/architecture.yml: Model configurationparams.msgpack: Model parameterstrain_data.yml: Training grid info1from huggingface_hub import hf_hub_download, snapshot_download
2import os
3
4# First option: get the full repository
5repo_path = snapshot_download(repo_id="AndreiB137/EinFields")
6# or clone the repository if you prefer
7
8# Second option: get only flax_models and the model file you want
9
10flax_models_folder = snapshot_download(
11 repo_id="AndreiB137/EinFields",
12 allow_patterns="flax_models/*"
13)
14
15model_folder = snapshot_download(
16 repo_id="AndreiB137/EinFields",
17 allow_patterns="kerr/boyer_lindquist/prograde/*"
18)
19
20# Then move the content in flax_models_folder to a directory where you are working with flax_models folder name. Afterwads:
21
22from flax_models import load_metric_from_model
23
24# Example
25# `load_metric_from_model` returns directly the metric tensor function
26metric_fn = load_metric_from_model("/your_path_to_model_folder/kerr/boyer_lindquist/zackiger")
27
28# Now is ready to be used.@article{
title={EINSTEIN FIELDS: A NEURAL PERSPECTIVE TO COMPUTATIONAL GENERAL RELATIVITY},
author={Cranganore, Bodnar and Berzins},
year={2025},
eprint={2507.11589},
archivePrefix={arXiv},
primaryClass={cs.LG}
}