Downloads · 30 days
0
jwheo/atd-v2-xlarge-sidd-medium-x4
atd-v2-xlarge-sidd-medium-x4 is a machine learning model from jwheo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for jax. The card lists the license as other.
JAX/Flax checkpoints for real-world x4 image super-resolution and restoration. The model is not TPU-only: inference can run on CPU, NVIDIA GPU, or TPU as long as JAX is installed with the matching backend.
Downloads · 30 days
0
Access
Public
Updated May 8, 2026
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
Other1.3 GB · 100%
From the Hugging Face model README
JAX/Flax checkpoints for real-world x4 image super-resolution and restoration. The model is not TPU-only: inference can run on CPU, NVIDIA GPU, or TPU as long as JAX is installed with the matching backend.
Source code: https://github.com/BitIntx/sr-tpu
atd_v2_xlargeatd_v2_xlarge_real_v3_sidd_medium_long_x4checkpoint_390000_best_lpips/: recommended checkpoint. It is the nearest saved checkpoint to the best fixed-sample LPIPS point, logged at step 389400 with LPIPS 0.3944.checkpoint_400000_latest/: latest saved base checkpoint, also used as the frozen SR base for residual-refiner experiments.infer.py: standalone x4 inference script for the base SR checkpoint.infer_refiner.py: optional base + residual-refiner inference script.sr_tpu/, train.py: runtime modules required by the inference scripts.requirements-infer.txt: shared non-JAX inference dependencies.The raw training run saw best random-eval PSNR gain vs bicubic at step 321000, but for practical visual restoration checkpoint_390000_best_lpips is the recommended first pick.
Create an environment, install the correct JAX backend, then install shared dependencies.
python3 -m venv ~/venvs/sr-tpu-infer
source ~/venvs/sr-tpu-infer/bin/activate
pip install --upgrade pip
pip install --upgrade "jax[cuda13]"
pip install -r requirements-infer.txt
CUDA 12 users can use pip install --upgrade "jax[cuda12]" instead. See the official JAX installation guide for current platform support and driver requirements: https://docs.jax.dev/en/latest/installation.html
python3 -m venv ~/venvs/sr-tpu-infer
source ~/venvs/sr-tpu-infer/bin/activate
pip install --upgrade pip
pip install --upgrade "jax[tpu]"
pip install -r requirements-infer.txt
CPU is useful for smoke tests or small images, but will be slow for this xlarge model.
python3 -m venv ~/venvs/sr-tpu-infer
source ~/venvs/sr-tpu-infer/bin/activate
pip install --upgrade pip
pip install --upgrade jax
pip install -r requirements-infer.txt
Check the backend:
python - <<'PY'
import jax
print(jax.default_backend())
print(jax.devices())
PY
Single image on GPU:
python infer.py \
--checkpoint checkpoint_390000_best_lpips \
--input path/to/input.jpg \
--output samples/input_x4.png \
--platform gpu \
--save-bicubic \
--compare
Folder with tiling, recommended for larger photos:
python infer.py \
--checkpoint checkpoint_390000_best_lpips \
--input path/to/images \
--output samples/atd_v2_xlarge_x4 \
--platform gpu \
--tile-size 128 \
--tile-overlap 16 \
--save-bicubic \
--compare
TPU VM inference:
python infer.py \
--checkpoint checkpoint_390000_best_lpips \
--input path/to/images \
--output samples/atd_v2_xlarge_x4_tpu \
--platform tpu \
--tile-size 128 \
--tile-overlap 16
CPU smoke test:
python infer.py \
--checkpoint checkpoint_390000_best_lpips \
--input path/to/small.jpg \
--output samples/small_x4.png \
--platform cpu \
--max-side 128
infer.py writes restored images and, for folder runs, metrics.csv. With --compare, comparison sheets are saved under output/compare/.
Prepared pair-manifest dataset:
sr_real_x4_v3_sidd_mediumThe model was trained with mixed-denoise degradation, including phone-like noise/compression artifacts and clean self-pair synthetic degradation.
These checkpoints are experimental research artifacts, not a polished production model. They are useful for TPU/JAX restoration experiments, GPU/CPU inference experiments, and as a base for residual-refiner training.