Classifying model using labeled images error

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!

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

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.

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

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

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

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!

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


One thing you need to improve is the masks generation, the edges are not clear and using those labels you will get more classes:

It should look like this in RealityCapture:


to get only 2 classes.

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?

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?

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.

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!

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
and then use File/Export/Export as option to save your label.

@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


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

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

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

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

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


And there shouldn’t be anything after labels in the label image name, so only PC026004.jpg.labels.png.

1 Like

@OndrejTrhan Thank you soo Much.

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 ?