# Bug: Label assist on deployed YOLOv8 instance segmentation model

**URL:** <https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084>\
**Category:** 🛠️ Feature Reqs\
**Tags:** bugs\
**Created:** [August 30, 2023, 1:59am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084 "2023-08-30T01:59:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jche774](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jche774/32/2744_2.png) [@jche774](https://discuss.roboflow.com/u/jche774)\
**Post date:** [August 30, 2023, 1:59am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/1 "2023-08-30T01:59:11Z")

</div>

I have some issues on deploying my custom YOLOv8 instance segmentation model to a new project to generate annotations for the new dataset:

When I tried the model on a new image in Roboflow editor it doesn’t generate anything no matter how I change the **confidence** and **overlap** values. The console output from developer tools is:

```auto
util_base.js:139
Uncaught (in promise) Error: Error in transpose: rank of input 1 must match length of perm 0,2,1.
    at Object.h (util_base.js:139:15)
    at transpose_ (transpose.js:52:5)
    at Module.transpose__op (operation.js:44:28)
    at e.<anonymous> (index.ts:184:25)
    at roboflow.js:2:1249588
    at Object.next (roboflow.js:2:1249693)
    at i (roboflow.js:2:1248407)

```

I also try public models like MS COCO on label assist and it is working fine which can generate annotations. When I use my custom YOLOv8 model it doesn’t even show the message box ‘X annotations applied’.  
 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/5/530d18d61d952456e6525c17b2fed5ad6412af25.png)

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [September 5, 2023, 2:56pm UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/2 "2023-09-05T14:56:24Z")

</div>

Hi @jche774

Could you share your project and workspace ID or Universe link so that we can help sort out this issue for you?

Does this issue occur with other Universe models? (You can try Universe models by clicking on the star icon on their page and selecting it in Label Assist)

---

<div class="post-metadata">

**Author:** ![jche774](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jche774/32/2744_2.png) [@jche774](https://discuss.roboflow.com/u/jche774)\
**Post date:** [September 6, 2023, 3:52am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/3 "2023-09-06T03:52:13Z")

</div>

Hi Thanks for helping!

I tried other Universe models on yolov8 segmentation and they worked fine surprisingly. But my model actually deploys fine and can show the segments normally on `Deploy` page shown below:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/8/896f4d7daadd1f7109d6d696bfc092d7e295f5b5.png)

My model can be found here:

> workspace: uoa-x5mvo  
> project: 2023p4p13

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [September 9, 2023, 6:50am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/4 "2023-09-09T06:50:56Z")

</div>

Hi @jche774

Did you happen to upload your model through the `.deploy` function in our Python package? The issue might stem from something wrong with the uploaded model.

Could you share the notebook you used to train the model?

---

<div class="post-metadata">

**Author:** ![jche774](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jche774/32/2744_2.png) [@jche774](https://discuss.roboflow.com/u/jche774)\
**Post date:** [September 10, 2023, 10:10am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/5 "2023-09-10T10:10:59Z")

</div>

Hi @leo

Yes I used `version.deploy()` to upload my model to Roboflow. Do you mind giving me your email address? I didn’t keep the exact version of that particular trained model but I can share the model weights and result with you.

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [September 11, 2023, 3:55am UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/6 "2023-09-11T03:55:41Z")

</div>

Hi @jche774

I don’t think sending over model weights is necessary, especially if I don’t know the model type since I can’t do much without that.

Would you like to try again and if so share the notebook you tried it with?

The three things to check when uploading model weights is:

- Make sure you write in the correct model type
- Make sure you have a supported version of Ultralytics installed (which shouldn’t be a problem if you used one of our notebooks)
- Do not apply any postprocessing to the model weights as that could mess things up

---

<div class="post-metadata">

**Author:** ![vazgenh-labs](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vazgenh-labs/32/3079_2.png) [@vazgenh-labs](https://discuss.roboflow.com/u/vazgenh-labs)\
**Post date:** [October 19, 2023, 8:07pm UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/7 "2023-10-19T20:07:30Z")

</div>

@leo hi I have same issue  
Error in transpose: rank of input 1 must match length of perm 0,2,1.  
with label assist

Its instance segmentation model

---

<div class="post-metadata">

**Author:** ![vazgenh-labs](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vazgenh-labs/32/3079_2.png) [@vazgenh-labs](https://discuss.roboflow.com/u/vazgenh-labs)\
**Post date:** [October 19, 2023, 8:10pm UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/8 "2023-10-19T20:10:24Z")

</div>

@leo Model is working fine [Sign in to Roboflow](https://app.roboflow.com/vazgen-hakobjanyan/teeth-number-prediction/deploy/1), but not inferencing in Label Assist

---

<div class="post-metadata">

**Author:** ![vazgenh-labs](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/vazgenh-labs/32/3079_2.png) [@vazgenh-labs](https://discuss.roboflow.com/u/vazgenh-labs)\
**Post date:** [October 19, 2023, 8:12pm UTC](https://discuss.roboflow.com/t/bug-label-assist-on-deployed-yolov8-instance-segmentation-model/3084/9 "2023-10-19T20:12:30Z")

</div>

Project id is teeth-number-prediction in my workspace called vazgen-hakobjanyan
