Git Product home page Git Product logo

style-transfer's Introduction

Style-transfer

Project Overview

This project implements a neural style transfer algorithm as described in the seminal paper "Image Style Transfer Using Convolutional Neural Networks" by Gatys et al. It uses PyTorch and a pre-trained VGG19 network to transfer the artistic style from one image (the style image) onto the content of another image (the content image), effectively merging these aspects to create a new, stylistically altered image.

Features

  • VGG19 for Feature Extraction: Utilizes the VGG19 model, a deep convolutional neural network pre-trained on the ImageNet dataset, for extracting style and content features from images.
  • Style Transfer: Combines the content of one image with the style of another using the technique of Gatys et al.
  • Gram Matrix Representation: Employs Gram matrices to capture and apply artistic styles from the style image to the content image.
  • Flexible Image Inputs: Supports image inputs from various sources, including URLs and local files.
  • Customizable Parameters: Allows tweaking of style weights, content weights, and other parameters to explore different styles.

Installation

To get started with this project, you'll need to set up your Python environment and install the required libraries.

Prerequisites

Python 3.x PyTorch Torchvision PIL (Python Imaging Library) NumPy Matplotlib

###steps

  1. Clone the Repository
    git clone https://github.com/your-username/style-transfer.git
    cd style-transfer
    
    

Install Required Libraries

pip install torch torchvision numpy matplotlib pillow


## Usage

To perform style transfer using this model, follow these steps:

# 1. Navigate to the Project Directory
cd path/to/style-transfer

# 2. Run the Notebook
jupyter notebook style_transfer.ipynb


Follow the instructions in the notebook to input your content and style images, and observe the style transfer process.


## Contributing

Contributions to this project are welcome. Please fork the repository and submit a pull request with your proposed changes.

## License


This project is open-source and available under the [MIT License](LICENSE).

style-transfer's People

Contributors

redouanamrar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.