BritishWerewolf / U-2-Netp

huggingface.co
Total runs: 7.2K
24-hour runs: 126
7-day runs: 101
30-day runs: -634
Model's Last Updated: March 08 2025
image-segmentation

Introduction of U-2-Netp

Model Details of U-2-Netp

U-2-Netp

Model Description

U-2-Netp is a lightweight version of the U2Net model designed for efficient and effective image segmentation tasks, especially for generating masks. It retains the core architectural design of U2Net while being optimized for faster inference times and reduced memory usage.

Usage

Perform mask generation with BritishWerewolf/U-2-Netp .

Example
import { AutoModel, AutoProcessor, RawImage } from '@huggingface/transformers';

const img_url = 'https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png';
const image = await RawImage.read(img_url);

const processor = await AutoProcessor.from_pretrained('BritishWerewolf/U-2-Netp');
const processed = await processor(image);

const model = await AutoModel.from_pretrained('BritishWerewolf/U-2-Netp', {
    dtype: 'fp32',
});

const output = await model({ input: processed.pixel_values });
// {
//   mask: Tensor {
//     dims: [ 1, 320, 320 ],
//     type: 'uint8',
//     data: Uint8Array(102400) [ ... ],
//     size: 102400
//   }
// }
Model Architecture

The U-2-Netp model is based on a simplified version of the original U2Net architecture, designed to be more lightweight while still achieving high performance in segmentation tasks. The model consists of several stages with down-sampling and up-sampling paths, using Residual U-blocks (RSU) for enhanced feature representation.

Inference

To use the model for inference, you can follow the example provided above. The AutoProcessor and AutoModel classes from the transformers library make it easy to load the model and processor.

Credits
Licence

This model is licensed under the Apache License 2.0 to match the original U-2-Net model.

Runs of BritishWerewolf U-2-Netp on huggingface.co

7.2K
Total runs
126
24-hour runs
363
3-day runs
101
7-day runs
-634
30-day runs

More Information About U-2-Netp huggingface.co Model

More U-2-Netp license Visit here:

https://choosealicense.com/licenses/apache-2.0

U-2-Netp huggingface.co

U-2-Netp huggingface.co is an AI model on huggingface.co that provides U-2-Netp's model effect (), which can be used instantly with this BritishWerewolf U-2-Netp model. huggingface.co supports a free trial of the U-2-Netp model, and also provides paid use of the U-2-Netp. Support call U-2-Netp model through api, including Node.js, Python, http.

BritishWerewolf U-2-Netp online free

U-2-Netp huggingface.co is an online trial and call api platform, which integrates U-2-Netp's modeling effects, including api services, and provides a free online trial of U-2-Netp, you can try U-2-Netp online for free by clicking the link below.

BritishWerewolf U-2-Netp online free url in huggingface.co:

https://huggingface.co/BritishWerewolf/U-2-Netp

U-2-Netp install

U-2-Netp is an open source model from GitHub that offers a free installation service, and any user can find U-2-Netp on GitHub to install. At the same time, huggingface.co provides the effect of U-2-Netp install, users can directly use U-2-Netp installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

U-2-Netp install url in huggingface.co:

https://huggingface.co/BritishWerewolf/U-2-Netp

Url of U-2-Netp

Provider of U-2-Netp huggingface.co

BritishWerewolf
ORGANIZATIONS

Other API from BritishWerewolf