(Image from https://tianchi.aliyun.com/museum7/?spm=5176.14046517.J_9711814210.23.2bd17c0aFQzXFg#/newprodetail?productId=7)
Example keypoints of the five clothing categories are as follows.
(Image from https://github.com/HiKapok/tf.fashionAI/blob/master/demos/outline.jpg)
Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.
For the sample image,
$ python3 fashionai-key-points-detection.py
You can specify the "clothing type" by specifying after the --clothing-type
option.
The clothing type is selected from blouse, dress, outwear.
$ python3 fashionai-key-points-detection.py --clothing-type blouse
If you want to specify the input image, put the image path after the --input
option.
$ python3 fashionai-key-points-detection.py --input IMAGE_PATH
By adding the --video
option, you can input the video.
If you pass 0
as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.
$ python3 fashionai-key-points-detection.py --video VIDEO_PATH
Pytorch
ONNX opset = 11