Skip to content
forked from XuyangGuo/CtrlHair

Controllable Hair Editing (ECCV 2022)

Notifications You must be signed in to change notification settings

cuzmuc/CtrlHair

 
 

Repository files navigation

CtrlHair

Controllable Hair Editing (ECCV 2022)

Install

Need python3.8 and GPU runtime environment

Clone this repo

Install python packages

  • bash script/install.sh

Download pretrained model and parameters

  • python script/download.py

Run API server

  • python app.py

can see PORT and IP here -> (

CtrlHair/app.py

Line 117 in b19ec1c

app.run(host='0.0.0.0',port=5555,debug=False)
)

Test API server

  • python test.py

    or

      curl --location --request POST 'http://0.0.0.0:5555/swaphair' \
      --header 'Content-Type: application/json' \
      --data-raw '{ \
        "srcimg": "data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD....", \
        "dstimg": "data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD....", \
      }
    

About

Controllable Hair Editing (ECCV 2022)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 69.0%
  • C 11.3%
  • Shell 11.1%
  • Python 6.2%
  • CMake 1.9%
  • Cuda 0.3%
  • Other 0.2%