Skip to main content
CodeLava
Back to work

Mardod AI Workers

A serverless image worker that removes backgrounds from supplier photos and prepares catalog-ready product images. The project also includes a separate vision-language model worker.

AI and automation
Mardod AI Workers

Technologies

  • Python
  • Docker
  • BiRefNet
  • ONNX Runtime
  • Pillow
  • Qwen3-VL
  • RunPod Serverless
  • vLLM
01

Chapter 01

Challenge

Supplier photos arrive with different backgrounds and framing. Reusing the extracted product matters when generating variants for different catalog templates.

02

Chapter 02

Solution

BiRefNet extracts the product and Pillow composites it onto white or template backgrounds. The worker returns and caches the cutout so later requests can apply a new backdrop using the same extraction.

03

Chapter 03

Results

  • The captured CPU run produced a cutout and a white-background catalog image from the same input.
  • The project packages the vision-language model in a separate worker image.