How viroshan2307/epoch_58 works
This repository restores noisy, low-resolution semiconductor inspection images into clean images at 2× resolution. The primary workflow is a user invoking the batch entry point, which loads the trained weights and runs the restoration model with flip-and-average test-time augmentation. A separate training workflow learns from paired arrays and saves a checkpoint; validation scripts measure PSNR/SSIM and LPIPS. Training and evaluation details are based on the README and sampled scripts; dataset storage is external to this repository.
Main entry points: compute_lpips.py LPIPS evaluation · run.py Batch runner · train.py Training workflow · evaluate_metrics.py PSNR / SSIM evaluation
Components 14
Image restoration
- Batch runner
run.py - TTA restoration
run.py - Restoration network
model_architecture.py - Trained weights
models/best_model_v3.pth
Model training
- Training workflow
train.py - Training network
model_architecture.py - Saved checkpoint
train.py
Model evaluation
- PSNR / SSIM evaluation
evaluate_metrics.py - LPIPS evaluation
compute_lpips.py
Other components
- Operator
- Noisy image files
- Restored image files
- Paired image arrays
- LPIPS package
Connections 16
- Operator → Batch runner: invokes
run.py - Noisy image files → Batch runner: reads files
run.py - Batch runner → Trained weights: loads
run.py - Batch runner → TTA restoration: dispatches
run.py - TTA restoration → Restoration network: runs inference
run.py - TTA restoration → Restored image files: writes files
run.py - Training workflow → Paired image arrays: loads pairs
train.py - Training workflow → Training network: trains
train.py - Training workflow → Saved checkpoint: saves best
train.py - PSNR / SSIM evaluation → Restoration network: runs inference
evaluate_metrics.py - PSNR / SSIM evaluation → Paired image arrays: reads validation
evaluate_metrics.py - PSNR / SSIM evaluation → Trained weights: loads
evaluate_metrics.py - LPIPS evaluation → Restoration network: runs inference
compute_lpips.py - LPIPS evaluation → Paired image arrays: reads validation
compute_lpips.py - LPIPS evaluation → Trained weights: loads
compute_lpips.py - LPIPS evaluation → LPIPS package: computes distance
compute_lpips.py