# Classifying model using labeled images error

**URL:** <https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899>\
**Category:** Pipeline & Plugins\
**Tags:** question, realityscan\
**Created:** [January 31, 2025, 3:08pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899 "2025-01-31T15:08:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [January 31, 2025, 3:08pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/1 "2025-01-31T15:08:05Z")

</div>

Hello,

I have added a number of labels images to use with AI Classify tool of rc, however I get this error: Classifying model using labeled images, Operation failed [err:5006].

Any ideas what’s wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 9:20am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/2 "2025-02-04T09:20:23Z")

</div>

Hello @Nikitas_Gk  
How were the labelled images created? How many colors are there? What are your steps there to get this error?

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 9:29am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/3 "2025-02-04T09:29:00Z")

</div>

Hello and thank you for your answer already,

The labelled images are created with masks in photoshop, from the original images. A total number of 11 labelled images, with two colours each (same colours). I import them by drag and drop, I validate them in the ai classify tool, which turns no errors and then I use the Transfer labels button, which turns the error I mentioned in the original comment.

Thank you again.

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 9:59am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/4 "2025-02-04T09:59:35Z")

</div>

Is it possible to share your data with us to check it?

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 10:16am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/5 "2025-02-04T10:16:55Z")

</div>

Sure, what kind of data you’d want and how can I share them?

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 10:32am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/6 "2025-02-04T10:32:03Z")

</div>

The original and labelled images. I sent you the invitation for the data upload. It can be in your spam folder.

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 10:42am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/7 "2025-02-04T10:42:46Z")

</div>

Thank you, just uploaded original and labelled photos.

One thing that might be relevant, since the original drone photos used for modelling and texturing were approx 3000+ and they were split in the DCIM in folders of 1000 each max, there are photos that have same names - is there any chance there is a mixup there because of the filenames?

Thanks!

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 11:36am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/8 "2025-02-04T11:36:48Z")

</div>

Thank you for your data.  
Yes, that could be an issue.  
I tested your data and it worked on my side with layer transfer:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/0/9202b3741d3d9bdd783c8cc1c7d88480705922dd.jpeg)  
One thing you need to improve is the masks generation, the edges are not clear and using those labels you will get more classes:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/9/df95401dd694ed89c6c164a070aa3e71cd47cd63.png)

It should look like this in RealityCapture:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/8/39818c245cb2fdabf46a591c6f3383ca61738c7c.png)  
to get only 2 classes.

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 12:18pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/9 "2025-02-04T12:18:00Z")

</div>

Thank you, I thought abut the filenames.

Is there a work around of the filename problem? As in importing the separate folders? Or assigning the labelled images to the correct original images?

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 12:34pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/10 "2025-02-04T12:34:12Z")

</div>

Ok, i tried to import the image with the same name and it seems it is not such issue. Maybe it depends on the way, how your images are structured.  
Are you using separate folders for the images and labels or are they in the same folder?  
Also, have the images with the same name the labels, too?  
The easiest (but maybe time consuming) way will be to create unique names for your images.

Just to check, are you getting the error also on data you sent me? If so, can you move the labelled images to the original images’ folder and then provide the operation?

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 2:38pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/11 "2025-02-04T14:38:50Z")

</div>

Hello again,

I had the labelled images in a separate folder and imported by drag and drop to my file after I have done the meshing and texturing.

I tried to move the labelled images in the original folders, along with the original photos of the same name and then import them, but they wouldn’t import - as if the folder is already imported and won’t take any new files from it.

I didn’t originally split the photos into different folders, as they are structured automatically. I don’t know if they should be structured differently tbh.

Thank you again.

---

<div class="post-metadata">

**Author:** ![Nikitas\_Gk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nikitas\_Gk](https://forums.unrealengine.com/u/Nikitas_Gk)\
**Post date:** [February 4, 2025, 2:46pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/12 "2025-02-04T14:46:50Z")

</div>

Hello again,

It worked - please don’t take into account my previous reply - I hadn’t realised that the labels are imported as a layer on top of the original photos and I was expecting them to show up in the input list. As soon as I moved them in the correct folders as the originals and then imported, it worked pretty fine.

I also see the problem with the many classes because of the many colours that you mentioned before, I guess it’s a matter of decoding of the jpeg within RC, since in my photo editing software the edges are clear, but when imported they are not.

Do you have any suggestions about this?

Thank you for all the support!

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [February 4, 2025, 3:00pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/13 "2025-02-04T15:00:58Z")

</div>

This is related to Photoshop and the export settings. I don’t remember the exact settings, but it is doable (as I have experienced the same issue).  
You can check this tutorial: [https://www.youtube.com/watch?v=U23Ydzs-dzQ](https://www.youtube.com/watch?v=U23Ydzs-dzQ)  
and then use File/Export/Export as option to save your label.

---

<div class="post-metadata">

**Author:** ![Abmaaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abmaaz](https://forums.unrealengine.com/u/Abmaaz)\
**Post date:** [April 20, 2025, 8:58pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/14 "2025-04-20T20:58:45Z")

</div>

@OndrejTrhan i am also stuck on this, i have created masked images through “meta-SAM”  
the mask images look like this  
currently i am only trying to classify only one part of my model in RC

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/6/f/e6fb32c5c4a213692b8446ff5fdf043907c20aef.png)  
in the attached screen shots you can see the name of my Mask image  
it is in .png format  
i have also tried  
“DJI001.building” also not working  
can you help me finding the issue

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [April 22, 2025, 10:38am UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/15 "2025-04-22T10:38:12Z")

</div>

Hello @Abmaaz  
You are using the wrong naming convention. You need to use _labels_ instead of _building_.  
For more information please visit these sites:

> **[RealityCapture Help](https://rchelp.capturingreality.com/en-US/tools/imglayers.htm)**

> **[RealityCapture Help](https://rchelp.capturingreality.com/en-US/tools/classification.htm)**

---

<div class="post-metadata">

**Author:** ![Abmaaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abmaaz](https://forums.unrealengine.com/u/Abmaaz)\
**Post date:** [April 29, 2025, 12:41pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/16 "2025-04-29T12:41:58Z")

</div>

@OndrejTrhan can i use more then one labels for an image?

---

<div class="post-metadata">

**Author:** ![Abmaaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abmaaz](https://forums.unrealengine.com/u/Abmaaz)\
**Post date:** [April 29, 2025, 12:49pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/17 "2025-04-29T12:49:23Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/0/3b05fc49d87a8ec459b77269bd27fe98fb32bd25.png)

how can i get rid of this issue  
i have also tried the folder approach  
but that also does not seem to be working

---

<div class="post-metadata">

**Author:** ![OndrejTrhan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ondrejtrhan/32/906565_2.png) [@OndrejTrhan](https://forums.unrealengine.com/u/OndrejTrhan)\
**Post date:** [April 29, 2025, 1:00pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/18 "2025-04-29T13:00:57Z")

</div>

You can use more layers, but those have to be placed over one label image, like:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/5/79527d0463e2db115e80e2388aeb3d8dd33f4a43.png)  
And there shouldn’t be anything after labels in the label image name, so only _PC026004.jpg.labels.png_.

---

<div class="post-metadata">

**Author:** ![Abmaaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abmaaz](https://forums.unrealengine.com/u/Abmaaz)\
**Post date:** [April 29, 2025, 1:06pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/19 "2025-04-29T13:06:53Z")

</div>

@OndrejTrhan Thank you soo Much.

---

<div class="post-metadata">

**Author:** ![Abmaaz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abmaaz](https://forums.unrealengine.com/u/Abmaaz)\
**Post date:** [April 29, 2025, 2:33pm UTC](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899/20 "2025-04-29T14:33:44Z")

</div>

the error is solved but another issue is that  
i have 104 labels  
with multi classes around 30 in total  
but after loading them only 2 objects are classified rest are gone  
why can’t i get all the classified objects ?

[Next page](https://forums.unrealengine.com/t/classifying-model-using-labeled-images-error/2311899.md?page=2)
