Skip to main content

Transfer the style of one image to another using PyTorch

Project description


A Python library to transfer the style of one picture to another using PyTorch.


You can install styletransfer from PyPi using:

pip install styletransfer

This package requires Python 3.x

Basic usage

The easiest way to get started is taking an online image for style transfer and just running with the default parameters:

from styletransfer import StyleTransfer
styleTransfer = StyleTransfer()

#Set the content image from URL

#Set the style image from URL

#Use default settings and train the model
#If you do not have a GPU that can take 30-60 minutes

#Write the result image to a file

Advanced usage

TBD: Detailed instructions to follow

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

styletransfer-0.8.2.tar.gz (6.8 kB view hashes)

Uploaded source

Built Distribution

styletransfer-0.8.2-py3-none-any.whl (8.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page