Giter Site home page Giter Site logo

ingeniousfrog / styleflowpytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xuduo35/styleflowpytorch

0.0 1.0 0.0 25.28 MB

Remove tensorflow dependence of official StyleFlow, and support specific image editing

License: MIT License

Shell 0.01% C++ 0.48% Python 95.58% Cuda 3.93%

styleflowpytorch's Introduction

StyleFlowPytorch

Remove tensorflow dependence of official StyleFlow, and support specific image editing

Borrow code from

https://github.com/RameenAbdal/StyleFlow

https://github.com/adriansahlman/stylegan2_pytorch

https://github.com/eladrich/pixel2style2pixel

https://github.com/zhhoper/DPR

https://github.com/foamliu/Face-Attributes-Mobile

All borrowed code are subject to original license.

Usage

Download Gs_ffhq.pth from https://drive.google.com/file/d/1YVGoe2b5nj1ogUtS5kYS8ptehAa4K8Km/view?usp=sharing, it's convertd from stylegan2-ffhq-config-f.pkl using adriansahlman's code. Put it under mymodels.

Put 'psp_encoder.pth'(pixel2style2pixel) under mymodels. Can be downloaded from https://drive.google.com/file/d/1vDfvBDFXXY4CIaJH4P0AhponaN4FzM9P/view?usp=sharing.

Put 'shape_predictor_68_face_landmarks.dat'(dlib) under mymodels.

cd webui

Use random generate images:

CUDA_VISIBLE_DEVICES=0 streamlit run app.py

Or use your own images:

python3 gendata.py ./images

CUDA_VISIBLE_DEVICES=0 streamlit run app.py ./data

Just like https://github.com/RameenAbdal/StyleFlow webui

You can edit(or create) ~/.streamlit/config.toml file to config port. Including content like: [server] port=8888

styleflowpytorch's People

Contributors

xuduo35 avatar

Watchers

James Cloos 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.