Giter Club home page Giter Club logo

fashion_pattern_replacement's Introduction

pattern_replacement

Table of Contents

  1. Introduction
  2. Installation
  3. Preparedata
  4. Train
  5. Tests
  6. Datasets

Introduction

The pattern_replacement program replace input cloth with given pattern based on cloth trend. This process can remove original pattern on cloth.

input

Installation

Requirements shortlists:

  • Pattern replacement program
  • Prepare data

Run demo on given data requires:

  • NVIDIA GPU, Python3
  • Tensorflow-gpu
  • various standard Python packages in requirement.txt
  • Pillow

Notes:

  • The program was tested on tensorflow-gpu 2.3.1 with cuda 10.1 and cudnn 7.6
  • The program requires your opencv-contrib-python and opencv-python in the same version

Prepare your own data:

To run you own data on this demo, you will need to prepare the Segmentation result of image, and run Densepose to get the human body trend information.

The main requirement of these programs:

The details requirement of Segmentation and Densepose can also be found in the link.

Preparedata

  1. Put input image under data/input/
  2. Run segementation program and put result under data/seg/
  3. Run
python preparedata.py

The result will under data/mask/

  1. Run densepose and put result under data/IUV/

After done the requirement prepare work:

Clone repository:

git clone https://github.com/aircat1216/fashion_pattern_replacement your_path

Install Python dependencies:

pip install -r your_path/requirements.txt

Train

Tests

If you want to run given demo, just run:

python predict.py

And you will find gray_scale result in data/output_gray/ and finan result in data/output_final.

To use your own data:

  1. Put the input images under data/input/
  2. preparedata and put mask under data/mask, IUV images under data/images
  3. run
python predict.py

If you want to select your own model and pattern, run:

python predict.py your_model_weight_file_name.h5 your_pattern_path

See Preparedata to prepare your own data

Datasets

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.