Views
No views yet
| Model | Metal alloy | Oxides | Adsorbate type | Binding energy | Catalyst class |
|---|---|---|---|---|---|
| CatDiT | ✓ | − | |||
| CatDiT-plus (base) | ✓ | ✓ | − | ||
| CatDiT-A | ✓ | ✓ | − | ||
| CatDiT-B | ✓ | ✓ | |||
| CatDiT-C | ✓ | ✓ | − | ✓ | |
| CatDiT-AB | ✓ | ✓ | ✓ |
1from huggingface_hub import hf_hub_download
2from omegaconf import OmegaConf
3from src.models.ldm_module import LatentDiffusionLitModule
4
5REPO = "doouv/catalyst-diffusion-transformer"
6ckpt = hf_hub_download(REPO, "ldm/CatDiT.ckpt") # CatDiT-A, CatDiT-B, CatDiT-C, CatDiT-AB
7vae = hf_hub_download(REPO, "vae/VAE-S.ckpt") # VAE-L for other pretrained models
8
9cg = OmegaConf.create({
10 "ads_id": {"use": True, "value": 77}, # see ads_id mappings
11 "binding_energy": {"use": True, "value": -1.24}, # eV
12 "cat_class": {"use": False, "value": None},
13})
14
15model = LatentDiffusionLitModule.load_from_checkpoint(
16 ckpt, autoencoder_ckpt=vae, conditional_generation=cg,
17 map_location="cuda", strict=False)
18model.eval()