Skip to content

CGS-IITKGP/Neural_Style_Transfer

Repository files navigation

Contributors Forks Stargazers Issues MIT License


image

Neural_Style_Transfer

This is project showcases how we can use a CNN to gather style and content information form an image and then use that to generate another image with same content as one image and same style as the other essentially transfering the style of one image into another.

Table of Contents

About The Project

This is project showcases how we can use a CNN to gather style and content information form an image and then use that to generate another image with same content as one image and same style as the other essentially transfering the style of one image into another.

(back to top)

Getting Started

To set up a local instance of the application, follow the steps below.

Prerequisites

The following dependencies are required to be installed for the project to function properly:

  • Python 3.10.16
  • Pip 25.1

(back to top)

Installation

Now that the environment has been set up and configured to properly compile and run the project, the next step is to install and configure the project locally on your system.

  1. Clone the repository

    git clone https://github.com/cgs-iitkgp/Neural_Style_Transfer.git
  2. Install Python and Pip

    python --version
    pip --version
  3. Install Dependencies

    pip install -r requirements.txt
  4. Running the Program

    • Use main_unweighted.py or main_weighted_CNN_layers.py to perform the image style transfer and edit the path of the content as well as style image in the python files to your respective file paths.
    python main_unweighted.py
    python main_weighted_CNN_layers.py

(back to top)

Usage

This is an example of the style transfer with the content, style and target image.

(back to top)

Contact

Maintainer(s)

The currently active maintainer(s) of this project.

Creator(s)

Honoring the original creator(s) and ideator(s) of this project.

(back to top)

Additional documentation

(back to top)

About

Neural Style Transfer using CNN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages