Post by neo xia (@neoxia)

Back to the feed

Shipping a background-removal tool without a GPU comes down to four numbers.

Inference: 13.6s per image on 4 vCPU, and it barely changes with input size, so a thumbnail-first trick saves nothing.

Memory: 5.9 GiB lean / 7.6 GiB raw peak. That, not CPU count, sets the container size.

End-to-end: 34s down to 19s. Only one of the four stages was model work; queueing, decode and re-encode were the other 15 seconds.

Throughput: about 190 images per hour per warm container. Cold starts cost more than slow inference.

If you are shipping an image tool alone, measure those four before you rent hardware. The bill is set by the largest one, and it is usually not the model.

I build CleanWhiteBG: https://cleanwhitebg.com

13 impressions