hadilq/hair-segment 🖼️ → 🖼️

▶️ 1.2K runs 📅 May 2024 ⚙️ Cog 0.9.6 🔗 GitHub
hair-segmentation image-segmentation

Performance

13.6sTypical run time
~132sCold start (first call)
1.2KTotal runs

About

This is an ML model to segment hairs in pictures.

Example Output

Output

Example output

Performance Metrics

13.58s Prediction Time
131.66s Total Time
Input Parameters
image (required) Type: string
Image of a dragon, or notdragon:
Output Schema

Output

Type: stringFormat: uri

Example Execution Logs
image 1/1 /tmp/tmpdegcdbop00322-3887184730_png.rf.9e8de7a3d900dbbdc8a757d37986ab90.jpg: 640x640 1 hair, 3105.2ms
Speed: 2.1ms preprocess, 3105.2ms inference, 653.0ms postprocess per image at shape (1, 3, 640, 640)
area: 11023
expand_factor: 44
vectorized_pixels len: 27656
K: 3
K: 4
K: 5
K: 6
label_img shape: (640, 640)
count_hair_label: [1487, 2451, 3081, 1789, 0, 2215]
count_not_hair_label: [3479, 1542, 1530, 3265, 2909, 3908]
hairy_label: {1, 2}
Version Details
Version ID
b335dc1b693b2de88040736eb426702adfc2f0c869ae9dba3569bac1beb9c0f6
Version Created
May 20, 2024
Run on Replicate →