# Custom YOLOv11n-seg Weights Upload Successfully but Cannot Run Image Preview or Workflow

**URL:** <https://discuss.roboflow.com/t/custom-yolov11n-seg-weights-upload-successfully-but-cannot-run-image-preview-or-workflow/12139>\
**Category:** 🤝  Community Help\
**Created:** [May 1, 2026, 8:14am UTC](https://discuss.roboflow.com/t/custom-yolov11n-seg-weights-upload-successfully-but-cannot-run-image-preview-or-workflow/12139 "2026-05-01T08:14:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgocTrang](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/ngoctrang/32/8757_2.png) [@NgocTrang](https://discuss.roboflow.com/u/NgocTrang)\
**Post date:** [May 1, 2026, 8:14am UTC](https://discuss.roboflow.com/t/custom-yolov11n-seg-weights-upload-successfully-but-cannot-run-image-preview-or-workflow/12139/1 "2026-05-01T08:14:01Z")

</div>

Hi Roboflow Team,

I’m posting this because I’ve searched the forum and found several similar segmentation-related threads, but I haven’t seen a **clear resolution** to this specific issue yet.

## Summary

- Custom YOLOv11-n segmentation weights upload successfully and are recognized as instance segmentation models.
- However, the uploaded segmentation models cannot run image preview or workflow execution.

This suggests the issue is **specific to segmentation inference** , not training or upload.

## What Works

- Uploading yolov11-n detection weights to Roboflow using the Python SDK
- Running image preview and workflows with the uploaded detection weights successfully on Roboflow.
- Uploading yolov11-n segmentation weights to Roboflow (Similar to detection)

## What Fails

Any attempt to run inference (image preview or workflow) using custom YOLOv11-n segmentation weights.

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/e/eedb0b78a3a2e0f329fae3a4076c476f0881d2c7.png)  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/8/83723545ace32a35a0510df9a53323ad37eeb893.jpeg)

## Code

```auto
from roboflow import Roboflow

rf = Roboflow(api_key="key")
workspace = rf.workspace("kawadard2")

workspace.deploy_model(
    model_type="yolo11n", # Type of the model #yolov11n: detect
    # yolov11n - yolov11n-seg - yolov11 - yolo11n
    model_path="./segment", # Path to model directory
    project_ids=["danger_segment"], # List of project IDs
    model_name="yolov11-segment-nano", # Name for the model (must have at least 1 letter, and accept numbers and dashes)
    filename="seg.pt") # Path to weights file (default)

```

## Key Observation

- Notably, these segmentation weights were downloaded from another segmentation project that was trained directly on Roboflow, rather than trained externally. This suggests the issue is unlikely to be caused by the training environment or custom export process.

- Additionally, on the code side, I experimented with all commonly used `model_type` values for YOLOv11 segmentation, including:  
`yolov11n`, `yolov11n-seg`, `yolo11n`, `yolo26n`, and `yolo26n-seg`.

## Questions

- Is there a known limitation or compatibility issue with custom YOLOv11 segmentation models on Roboflow?

- Are custom segmentation models expected to be fully supported for image preview and workflow execution, or is this an acknowledged gap?

- If this is currently not supported, is there any recommended way to reuse a model that has already been trained in one workspace within another workspace, in order to avoid unnecessary re‑uploading the dataset and retraining of an identical model?

I’d really appreciate any clarification, confirmation, or guidance on this.  
At the moment, it’s difficult to tell whether this is a known limitation or an unresolved issue, since detection works flawlessly while segmentation consistently fails.

Thank you very much for your help.

Best regards,  
Trang

- **Project Type: Yolov11 segmentation model**
- **Operating System & Browser:windows**
- **Project Universe Link or Workspace/Project ID:workspace=“kawadard2”, project\_ids=[“danger\_segment”]**
- **Do you grant Roboflow Support permission to access your Workspace for troubleshooting? (Yes/No):Yes**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [May 22, 2026, 8:14am UTC](https://discuss.roboflow.com/t/custom-yolov11n-seg-weights-upload-successfully-but-cannot-run-image-preview-or-workflow/12139/2 "2026-05-22T08:14:21Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
