Skip to content

About

No description, website, or topics provided.

Resources

Stars

18 stars

Watchers

0 watching

Forks

Repository files navigation

CryoFastAR: Fast Cryo-EM Ab Initio Reconstruction Made Easy

Accepted by ICCV 2025

Jiakai Zhang, Shouchen Zhou, Haizhao Dai, Xinhang Liu, Peihao Wang, Zhiwen Fan, Yuan Pei, Jingyi Yu

1 ShanghaiTech University, 2 Cellverse Co., Ltd., 3 HKUST, 4 UT Austin

Installation

  1. Clone repo

    cd CryoFastAR
  2. create conda envionment and activate

conda create -n cryofastar python=3.11
conda activate cryofastar
pip install -r requirement.txt

Inference (Experimental Data)

Due to the limited experimental data in public, our model only supports four types of experimental data from cryoDRGN's datasets. We split them into the training data (30,000 for each) and unseen remained test data. The pretrained checkpoints and example data are available in the public Hugging Face dataset.

Download cryofastar-ckpts.zip and data.zip, or use the Hugging Face CLI:

hf download cellverse/cryofastar-assets data.zip cryofastar-ckpts.zip --repo-type dataset --local-dir .

Extract both archives from the CryoFastAR project directory. The checkpoint archive already contains the checkpoints/ directory, while the example data should be extracted into data/:

unzip cryofastar-ckpts.zip -d .
unzip data.zip -d data

The data archive provides one experimental example and one synthetic example for reproducing the paper's results. The dataset card includes archive details, SHA-256 checksums, license terms, and the paper citation.

Simply running below commands can generate results under results/ including the reconstructed volume as well as the angluar histograms.

bash evaluate_model_real.sh
bash evaluate_model_synthetic.sh

Reconstruction Progress Visualization

To inspect how the 3D volume grows while the model consumes new views, use the helper below:

python visualize_reconstruction_progress.py \
    --ckpt-path checkpoints/cryofastar.pth \
    --root-path data/your_dataset \
    --num-views 64 \
    --out-dir results/progress_example

This script runs a single evaluation pass but saves intermediate diagnostics in results/progress_example/:

  • renders/render_XXXX.png: top-row input thumbnails, volume slices, a max-intensity projection, the pose scatter, an orientation heat map, and the 2D shift error map (disable via --render-mode none).
  • progress.csv: timeline metadata (time, processed images vs. total, sampled ids, etc.).
  • pose_reference_dirs.npy / pose_inference_dirs.npy: accumulated pose orientations for reference and inference views; optional pose_<metric>_values.npy matches the chosen pose heat-map metric.
  • translation_positions.npy / translation_errors.npy: shift statistics gathered during the run.
  • progress.mp4: automatically generated 16:9 video (10 fps by default) that strings the renders together; skip via --no-video or adjust speed with --video-fps.

Use --snapshot-interval to control how often a snapshot is written, pass --max-snapshots if you want to cap how many are kept (the default keeps all), and switch to --pose-source gt to visualise the ground-truth pose distribution instead of predictions. --pose-heatmap-metric now supports loss3d, rotation angle (rot), F-norm rotation error (rot_fro), 2D shift error (shift), or plain density; combine with --heatmap-vmin/--heatmap-vmax to clamp the color bar. Turn on --snapshot-regularize if you prefer the slower but sharper Fourier-domain filtering for each saved volume.

📜 License & Commercial Use

This project adopts a split licensing model for its source code and model weights:

  • Model Weights & Datasets: Licensed under CC BY-NC 4.0. Noncommercial academic research, teaching, evaluation, and personal use are permitted subject to attribution, a license link, and disclosure of modifications. The public Hugging Face dataset includes the complete license.
  • Source Code: Licensed under the PolyForm Noncommercial 1.0.0 License. Restricted to academic, personal, and non-profit use.

💼 Commercial Licensing Any commercial use of the source code, model weights, or their derivatives (including fine-tuned models) is strictly prohibited without explicit written permission. If you or your organization wish to use this project for commercial products, APIs, or internal business operations, please obtain a commercial license by contacting us at: 📧 Email: contact@cellverse.tech or jiakai0309@gmail.com

Citation

Jiakai Zhang, Shouchen Zhou, Haizhao Dai, Xinhang Liu, Peihao Wang, Zhiwen Fan, Yuan Pei, and Jingyi Yu. CryoFastAR: Fast Cryo-EM Ab initio Reconstruction Made Easy. Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2025, pages 8462–8471.

Read the paper at CVF Open Access or arXiv. Please cite the paper when using the code, data, or pretrained checkpoints in academic work.

@inproceedings{zhang2025cryofastar,
  author    = {Zhang, Jiakai and Zhou, Shouchen and Dai, Haizhao and Liu, Xinhang and Wang, Peihao and Fan, Zhiwen and Pei, Yuan and Yu, Jingyi},
  title     = {{CryoFastAR}: Fast Cryo-EM Ab initio Reconstruction Made Easy},
  booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
  month     = {October},
  year      = {2025},
  pages     = {8462--8471},
  url       = {https://openaccess.thecvf.com/content/ICCV2025/html/Zhang_CryoFastAR_Fast_Cryo-EM_Ab_initio_Reconstruction_Made_Easy_ICCV_2025_paper.html}
}

About

No description, website, or topics provided.

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages