segmentation_models.pytorch icon indicating copy to clipboard operation
segmentation_models.pytorch copied to clipboard

Semantic segmentation models with 500+ pretrained convolutional and transformer-based backbones.

Results 111 segmentation_models.pytorch issues
Sort by recently updated
recently updated
newest added

What's the reasoning behind limiting the Mix Visual Transformer encoder #632 to 3 input channels? https://github.com/qubvel/segmentation_models.pytorch/blob/master/segmentation_models_pytorch/encoders/mix_transformer.py#L468 I couldn't spot anything in the paper or the original SegFormer implementation.

## Issue Description: **Code Location:** `metrics/functional.py` ### Problem: In the file `functional.py`, specifically in the the function get_stats, the line: ```python if torch.is_floating_point(output) and threshold is None: raise ValueError(f"Output should...

Hi, is there any reference to modify this code for instance segmentation task? how hard it would be?

Hi I traced the Unet model with mit-b1 backbone on cpu. I can load and convert it to gpu but once I run inference with it I get the following...

Stale

I was using an older version from segmentation models and everything was working fine, when i've upgraded to the latest version i got this error message ``` barcode_det_model_path = os.path.join("passport_barcode_det_UnetPlusPlus_resnext50_32x4d_e39_lv0.026_ltr0.014_ltest0.038_iv0.95_itr0.973_itest0.932.pth")...

preprocess_input = get_preprocessing_fn('resnet18', pretrained='imagenet') ... img = preprocess_input(img) What range of pixels should i put there? [0, 1] or [0,255]. Does it depends on specific preprocessing function? Or it's always...

Bumps [timm](https://github.com/huggingface/pytorch-image-models) from 0.9.7 to 0.9.16. Release notes Sourced from timm's releases. Release v0.9.16 Feb 19, 2024 Next-ViT models added. Adapted from https://github.com/bytedance/Next-ViT HGNet and PP-HGNetV2 models added. Adapted from...

dependencies

@qubvel happen to see [FeatUp](https://github.com/mhamilton723/FeatUp)? Might make for some interesting gains in model performance, where applicable.

feature

When trying with predictions and targets of shape (batch_size, num_classes, image_height, image_width): ``` tp, fp, fn, tn = smp.metrics.get_stats(predictions, targets, mode='multiclass', num_classes=9) iou_score = smp.metrics.iou_score(tp, fp, fn, tn, reduction=None) recall...

Hi, I trained a model for semantic segmentation with good results. Could I extract the feature vector from the encoder of my trained network in any way?

Stale