Specialized version of U2Net trained for clothing segmentation.
Can segment different types of clothing (upper body, lower body, full body)
and is particularly useful for fashion applications and clothing analysis.
Example
// Create a cloth segmentation session constsession = newU2NetClothSegSession();
// Set clothing category session.setClothCategory('upper');
// Initialize and use awaitsession.initialize(); constmasks = awaitsession.predict(imageCanvas);
If ONNX profiling is enabled (via rembgConfig.enableONNXProfiling(true)),
ONNX Runtime will collect profiling data for each inference run.
Profiling data is automatically outputted to the console after each inference.
U2Net Cloth Segmentation model session.
Specialized version of U2Net trained for clothing segmentation. Can segment different types of clothing (upper body, lower body, full body) and is particularly useful for fashion applications and clothing analysis.
Example