# luanfujun/deep-photo-styletransfer

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/luanfujun-deep-photo-styletransfer).**

9,994 stars · 1,380 forks · Matlab

## Links

- GitHub: https://github.com/luanfujun/deep-photo-styletransfer
- awesome-repositories: https://awesome-repositories.com/repository/luanfujun-deep-photo-styletransfer.md

## Description

This project is a deep learning style transfer framework designed to apply artistic styles to photographs. It functions as a photorealistic image stylizer that merges the content of one image with the visual characteristics of another while maintaining the original geometry and structural details.

The system distinguishes itself through the use of matting Laplacian matrices and semantic segmentation masks to prevent distortion and preserve edge fidelity. These capabilities allow for region-specific styling, where different aesthetics can be applied to distinct objects or areas within a single image based on color-coded labels.

The framework covers neural image synthesis and artistic image processing, utilizing feature reconstruction and regularization to ensure that the resulting stylized versions maintain the integrity of the original scene.

## Tags

### Artificial Intelligence & ML

- [Neural Style Transfer](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-style-transfer.md) — Provides a framework for transferring artistic styles to photographs while preserving original photorealistic structures. ([source](https://github.com/luanfujun/deep-photo-styletransfer#readme))
- [CNN Image Stylizers](https://awesome-repositories.com/f/artificial-intelligence-ml/cnn-image-stylizers.md) — Uses convolutional neural networks to transform photographs into stylized versions that maintain scene integrity.
- [Segmented Style Application](https://awesome-repositories.com/f/artificial-intelligence-ml/computer-vision-systems/image-segmentation/segmented-style-application.md) — Applies distinct artistic styles to specific image regions guided by segmentation masks. ([source](https://github.com/luanfujun/deep-photo-styletransfer/blob/master/neuralstyle_seg.lua))
- [Matting Laplacian Regularization](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-network-regularization/matting-laplacian-regularization.md) — Employs matting Laplacian regularization to maintain photorealistic structures and edge fidelity during style transfer.
- [Photorealistic Style Transfer](https://awesome-repositories.com/f/artificial-intelligence-ml/neural-style-transfer/photorealistic-style-transfer.md) — Applies artistic styles to photographs while strictly preserving original edges and structural details.
- [Semantic-Guided Style Transfer](https://awesome-repositories.com/f/artificial-intelligence-ml/semantic-segmentation/semantic-guided-style-transfer.md) — Applies specific aesthetics to distinct image regions using semantic segmentation masks.
- [Structural Image Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/structural-image-generation.md) — Ensures the integrity of objects and edges through structural image generation constraints. ([source](https://github.com/luanfujun/deep-photo-styletransfer/blob/master/README.md))
- [Convolutional Feature Extractors](https://awesome-repositories.com/f/artificial-intelligence-ml/convolutional-feature-extractors.md) — Utilizes a pre-trained VGG-19 convolutional network to extract deep visual patterns and style statistics.
- [Gram Matrix Style Representations](https://awesome-repositories.com/f/artificial-intelligence-ml/gram-matrix-style-representations.md) — Implements Gram Matrix computations to capture artistic texture and color distributions from neural network feature maps.
- [Iterative Image Optimizers](https://awesome-repositories.com/f/artificial-intelligence-ml/iterative-image-optimizers.md) — Uses iterative gradient-based optimization to refine the output image by minimizing content and style distance.
- [Content Loss Calculators](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures/neural-network-components/loss-functions/perceptual-loss/content-loss-calculators.md) — Calculates content loss across multiple network depths to ensure structural integrity in synthesized images.

### Part of an Awesome List

- [Artistic Style Transfer](https://awesome-repositories.com/f/awesome-lists/ai/artistic-style-transfer.md) — Transfers the aesthetic characteristics of artworks to photographs while maintaining structural integrity. ([source](https://github.com/luanfujun/deep-photo-styletransfer/blob/master/libcuda_utils.so))
- [Region-Specific Styling](https://awesome-repositories.com/f/awesome-lists/ai/artistic-style-transfer/region-specific-styling.md) — Allows for different aesthetics to be applied to distinct objects within a single image using segmentation masks.
- [Image Synthesis](https://awesome-repositories.com/f/awesome-lists/ai/image-synthesis.md) — Merges content and visual characteristics using deep learning for neural image synthesis.
- [Domain Transfer and Translation](https://awesome-repositories.com/f/awesome-lists/ai/domain-transfer-and-translation.md) — Photorealistic style transfer between images.

### Graphics & Multimedia

- [Matting Laplacian Processors](https://awesome-repositories.com/f/graphics-multimedia/media-production-suites/media-management-production/media-management-systems/image-processing-utilities/image-processors/matting-laplacian-processors.md) — Implements a processor using matting Laplacian matrices to prevent distortion in stylized photographs.

### User Interface & Experience

- [Edge-Preserving Filters](https://awesome-repositories.com/f/user-interface-experience/animation-and-motion-systems/blur-effects/edge-preserving-filters.md) — Preserves edge and detail fidelity during style transfer using edge-preserving filtering techniques like matting Laplacians. ([source](https://github.com/luanfujun/deep-photo-styletransfer#readme))
