How satoshi-kosugi/masked-style-modeling works
Project type and purpose
• This is a research‐oriented deep learning project implementing “Personalized Image Enhancement Featuring Masked Style Modeling.”
• It provides a two‐step training pipeline (train1.py, train2.py), a testing/inference script (test.py), data download and degradation utilities, a dataset loader, and modular model components (content/style embeddings, transformer encoder, stylized enhancer, loss).
File structure
• Top level:
• data/: raw data scripts (download_from_flickr.py, degrade.py) and prebuilt train/valid pickles
• dataset/: loader.py wraps PyTorch Dataset logic
• model/: pure Python modules for each network component
• train1.py, train2.py: stage-1 and stage-2 training orchestration
• test.py: inference and evaluation
• requirements.txt, README.md
• The separation into data ingestion, dataset definition, model definition, training, testing, and utilities reveals a clear ML-pipeline pattern.
README for additional insights
• Two‐stage training: run train1.py then train2.py
• Test script optionally loads pretrained models
• References a paper and shows a high‐level architecture figure