How ivrugue/pixelshuffler works
PixelShuffler is presented as an image-to-image style-transfer method. The demonstrated runtime accepts content and style images, iteratively deforms the style image toward the content image using selectable losses, then saves the result. The README describes pixel shuffling and mutual-information maximization, but the inspected entry point instead uses a MONAI UNet and image warping; no pixel-shuffle implementation is evidenced in the supplied source. The registration-network and deformation-loss modules are substantial, but their connection to the demonstrated workflow is not shown.
Main entry points: style_transfer.py CLI and Optimizer · utils.py Feature Style Loss
Components 13
Style Transfer
- CLI and Optimizer
style_transfer.py - Registration UNet
style_transfer.py - Image Warping
style_transfer.py - Mutual Information
style_transfer.py - LPIPS Loss
style_transfer.py - Result Export
style_transfer.py
Image and Loss Support
- Image Loading
utils.py - Field Conversion
utils.py - Feature Style Loss
utils.py - VGG Features
utils.py
Registration Components
- Registration Networks
networks/networks.py - Deformation Losses
networks/deform_losses.py
Other components
- CLI User
Connections 10
- CLI User → CLI and Optimizer: invokes
README.md - CLI and Optimizer → Image Loading: loads images
style_transfer.py - CLI and Optimizer → Registration UNet: predicts field
style_transfer.py - CLI and Optimizer → Field Conversion: converts field
style_transfer.py - CLI and Optimizer → Image Warping: warps image
style_transfer.py - CLI and Optimizer → Mutual Information: computes loss
style_transfer.py - CLI and Optimizer → LPIPS Loss: computes loss
style_transfer.py - CLI and Optimizer → Feature Style Loss: computes loss
style_transfer.py - Feature Style Loss → VGG Features: extracts features
utils.py - CLI and Optimizer → Result Export: saves result
style_transfer.py