# Problems when parsing model metadata using inferencejs

**URL:** <https://discuss.roboflow.com/t/problems-when-parsing-model-metadata-using-inferencejs/7832>\
**Category:** 🤝  Community Help\
**Created:** [December 1, 2024, 6:32pm UTC](https://discuss.roboflow.com/t/problems-when-parsing-model-metadata-using-inferencejs/7832 "2024-12-01T18:32:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonNg231](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jasonng231/32/3095_2.png) [@JasonNg231](https://discuss.roboflow.com/u/JasonNg231)\
**Post date:** [December 1, 2024, 6:32pm UTC](https://discuss.roboflow.com/t/problems-when-parsing-model-metadata-using-inferencejs/7832/1 "2024-12-01T18:32:25Z")

</div>

- \*\*Project Type: Instance segmentation
- \*\*Operating System & Browser: Windows, Firefox
- \*\*Project Universe Link or Workspace/Project ID: [Sign in to Roboflow](https://app.roboflow.com/spectrogram-4ah9q/instance-segmentation-for-images/1)

Hello everyone. I am currently running into this error when I try to run my model through inferencejs: Error: Error loading model spectrogram-4ah9q/instance-segmentation-for-images/2: Error: Error happened while parsing model metadata. {}  
Below is the code I use for inference. I custom train my model locally then I upload my trained model to roboflow using deploy function in roboflow in python.  
Has anyone ever run into this problem before and how one can solve it?

 ![code for ML](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/2X/d/d0a4d370b414f335603265f5089248dc53749572.png)

---

<div class="post-metadata">

**Author:** ![peter\_roboflow](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/peter_roboflow/32/2609_2.png) [@peter\_roboflow](https://discuss.roboflow.com/u/peter_roboflow)\
**Post date:** [December 8, 2024, 5:40am UTC](https://discuss.roboflow.com/t/problems-when-parsing-model-metadata-using-inferencejs/7832/2 "2024-12-08T05:40:58Z")

</div>

Unfortunately, inference.js doesn’t currently support instance-segmentation models. Try hitting our hosted API with a post request, or standing up your own api in a couple commands using our inference docker container

```auto
pip install inference-cli
inference server start

```

---

<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:** [December 29, 2024, 5:41am UTC](https://discuss.roboflow.com/t/problems-when-parsing-model-metadata-using-inferencejs/7832/3 "2024-12-29T05:41:10Z")

</div>

Closed on December 29, 2024, 5:41am UTC

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