ternerss / mobile-style-transfer

Mobile Style Transfer in PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mobile Style Transfer

Implementation of Neural Style Transfer based on MobileNet architecture with Sobel loss idea.

Installation

  1. Clone this repository:
git clone https://github.com/ternerss/mobile-style-transfer.git
cd mobile-style-transfer
  1. install requirements:
pip install -r requirements.txt

Usage

pytorch cuda gcc

Dataset: COCO 2017 Val images

  • Train:
python train.py --dataroot data/ --style data/styles/wave.jpeg --batch_size 16 --lr 0.001 --epochs 30
  • Test:
python test.py --input data/val/building.jpeg --weights weights mobile_style_transfer.pth --out out/ 

Main idea

References

About

Mobile Style Transfer in PyTorch


Languages

Language:Python 100.0%