Image-to-Image
Transformers
Safetensors
fela_pde_fno2d
feature-extraction
fela
fourier-neural-operator
fno
cpu
on-device
pde-surrogate
thermal-simulation
battery
custom_code
Instructions to use lowdown-labs/fela-pde with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lowdown-labs/fela-pde with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-to-image", model="lowdown-labs/fela-pde", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("lowdown-labs/fela-pde", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| import torch | |
| from input_builder import cylinder_mask, from_pack | |
| from modeling import denormalize, load_model | |
| model = load_model(".") | |
| mask = cylinder_mask(rows=3, cols=4, radius_frac=0.4) | |
| x = from_pack( | |
| mask, | |
| current_A=40.0, | |
| soc=0.3, | |
| R0_ohm=0.02, | |
| k_cell_W_mK=20.0, | |
| k_coolant_W_mK=0.6, | |
| h_conv_W_m2K=80.0, | |
| T_amb_degC=25.0, | |
| domain_L_m=0.08, | |
| ) | |
| with torch.no_grad(): | |
| T = denormalize(model(x))[0, 0] | |
| hot = divmod(int(T.argmax()), T.shape[1]) | |
| print("temperature grid:", tuple(T.shape)) | |
| print("peak degC:", round(float(T.max()), 2)) | |
| print("mean degC:", round(float(T.mean()), 2)) | |
| print("hottest cell row,col:", [int(hot[0]), int(hot[1])]) | |