PairTIDE-SigLIP
Generate new detection/truth image pairs conditioned on one real, registered detection/truth reference pair. No text prompt or T5 is required. The direct inference entry point saves every generated pair without ranking or postprocessing.
Weights
| Directory | Contents |
|---|---|
siglip_full10k/ | Original low-learning-rate full10k checkpoint; default online model |
siglip_full10k_high_lr/ | Original high-learning-rate full10k checkpoint; optional alternative |
siglip/ | Frozen SigLIP encoder and preprocessing files |
image_lora/ | Original fluorescence image LoRA, reused from homura12138/pairtide |
pairtide_base/ | Original PairTIDE adapters/TAN, reused from homura12138/pairtide |
The current loader needs the original adapters to reconstruct the PEFT topology
before restoring the fine-tuned full branch weights. Keep these dependencies.
PixArt is downloaded separately from PixArt-alpha/PixArt-XL-2-512x512.
Only its transformer, VAE and scheduler are required; T5 is not needed.
The two large PixArt/VAE files match the validated local dependencies by SHA256.
Download
Use the PairTIDE-SigLIP code repository with scripts/infer_pair.py and install
its pinned requirements.txt in Python3.11/PyTorch2.4.1/CUDA12.1.
From the code repository root:
from huggingface_hub import snapshot_download
snapshot_download(
"homura12138/pairtide-siglip",
local_dir="./weights",
allow_patterns=["image_lora/**", "pairtide_base/**", "siglip/**", "siglip_full10k/**"],
)
snapshot_download(
"PixArt-alpha/PixArt-XL-2-512x512",
revision="50f702106901db6d0f8b67eb88e814c56ded2692",
local_dir="./weights/pixart",
allow_patterns=["transformer/**", "vae/**", "scheduler/**"],
)
To use the high-LR version, also download siglip_full10k_high_lr/** and change
the checkpoint argument below.
Direct single-GPU inference
CUDA_VISIBLE_DEVICES=0 OMP_NUM_THREADS=4 \
PIXART_MODEL="./weights/pixart" \
IMAGE_LORA="./weights/image_lora" \
PAIR_WEIGHTS_REF="./weights/pairtide_base" \
SIGLIP_MODEL="./weights/siglip" \
python scripts/infer_pair.py \
--checkpoint ./weights/siglip_full10k \
--detection /path/to/detection.png \
--truth /path/to/truth.png \
--output-dir ./results/example \
--num-samples 1 --seed 42 --steps 20
Use a BF16-capable NVIDIA GPU. Inputs must be corresponding 8-bit reference
images with matching dimensions, each >=512 and divisible by16. Output size
follows the reference (including2448x2048), using synchronized whole-canvas
latent sampling. No independent RGB patches are stitched. Output images go
to detection/ and truth/, with seeds recorded in inference_manifest.jsonl.
Both full10k checkpoints were trained at512x512. Full-frame inference is a
sampling extension, not evidence of full-frame training or guaranteed quality.
Color, density, biological morphology and within-pair correspondence require
validation for the intended application. These are not the rejected experimental
multiscale-condition checkpoints. No optimizer states, datasets or API secrets
are included. weights_manifest.json lists file hashes and dependency revisions.