# Advanced Tips

### Combine labels <a href="#combine-labels" id="combine-labels"></a>

In image classification tasks, although the idea of training a single algorithm to identify numerous classes is appealing, splitting training data among these classes might result in less data per class and eventually causing the neural network unable to learn from the data successfully, thus poor performance.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-9c96ed9d35a51e658fe5187eacdc706c8b2f7668%2FDeepCap_Adv_1.png?alt=media)

Splitting data among more classes causes less data per class, reducing the effective data size for the neural network to learn from.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-5aee61edb15aa2e943d6dd8d0093cddf0912411f%2FDeepCap_Adv_2.png?alt=media)

During annotation project export, user can choose to export directly from the labels or to combine labels into new ones.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-9c48392175d593fcaa2ba4b415f96b3e83b59466%2FDeepCap_Adv_3.png?alt=media)

Click “add a combination” after toggling on the combine label function. User may choose how to combine the classes and assign new class names.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-698e727047f2e294fd8feadf37262b81c7726c2c%2FDeepCap_Adv_4.png?alt=media)

After combining labels, remember to toggle off the existing labels to prevent the new label to become a multi-label annotation (A single image belongs more than one class, “A1” & “Group A” in this case).

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-880f510cff5e2d6d43a7ceb3f0b19f6a26769256%2FDeepCap_Adv_5.png?alt=media)

The combined labels will appear in the new annotation data.

### **Convert labels** <a href="#convert-labels" id="convert-labels"></a>

It happens when a user wants to train a classification AI with object detection annotation data. In order to do so, the labels have to be converted into classification for the algorithms to learn from. DeepQ AI platform provides an easy way for users to convert their label type and try out different applications with the same annotation data.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-bb3c592f3689feb96fa77dd13e1687e849a5a203%2FDeepCap_Adv_6.png?alt=media)

During export annotation, choose the annotation type (target) you want, DeepQ AI platform will automatically find out & show the available labels (source) to convert from. The target-source conversion table is listed below.

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-64f357f2da9c13a27b4d5687906b8f6ac15f05da%2FDeepCap_Adv_7.png?alt=media)

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-aef6e6470ccfe3d0beb4c68ec25d519e49850247%2FDeepCap_Adv_8.png?alt=media)

Both detection (object 1) & segmentation (object 2) labels can be converted into classification labels. The new classification label will be names as “object 1” & “object 2”

![](https://2559985325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEU1efCcxGpwM5PoOPuQP%2Fuploads%2Fgit-blob-08905601a6c56c2e6eed71e59edaa9974eff975e%2FDeepCap_Adv_9.png?alt=media)

Only segmentation labels (object 2) can be converted into detection labels, the label name and number of objects will remain the same after conversion.
