DnaRnaProteins/unet-bilstm-cell-cycle-baseline
05
U-Net + BiLSTM Cell Cycle Baseline
CPU-trained baseline checkpoint for 3-class cell cycle state prediction on CTC Fluo-N2DH-GOWT1. Architecture: 4-level U-Net encoder (no decoder) global avg pool 2-layer bidirectional LSTM linear classifier head.
Architecture
Training
- Dataset: Fluo-N2DH-GOWT1 seq 01 (train) / seq 02 (val)
- Loss: weighted cross-entropy [1.0, 15.0, 25.0] (interphase / pre-mitosis / mitosis)
- Optimizer: AdamW, lr 3e-4, wd 1e-4, cosine schedule, grad clip 1.0
- 30 epochs CPU / 80 epochs GPU
Held-out metrics (CPU, seq 02)
Files
best_baseline_cpu.ptâ state_dict for the CPU configurationconfig.yamlâ hyperparameters and architecture choices
Loading
import torch
from huggingface_hub import hf_hub_download
# Architecture lives in this repo's training code:
# github.com/mascharkh/biomechanical-ai-systems
# project/src/cell_cycle/models/unet_baseline.py
from cell_cycle.models.unet_baseline import UNetLSTMClassifier
ckpt = hf_hub_download(
repo_id="DnaRnaProteins/unet-bilstm-cell-cycle-baseline",
filename="best_baseline_cpu.pt",
)
model = UNetLSTMClassifier(num_classes=3, base_ch=16, lstm_hidden=128, lstm_layers=2, dropout=0.3)
model.load_state_dict(torch.load(ckpt, map_location="cpu", weights_only=True))
model.eval()