Closed vndee closed 5 years ago
Hi @vndee,
It seems that this error is due to multiclass_to_label_image
which is only used for visualization purposes (tf.summary
), and not during training. I'll need to have a closer look to see if there is another/better way for visualizing many labels but for now you can comment the lines related to image summaries (the ones using multiclass_to_label_image
).
Also regarding your classes.txt
file, your classes seems to be mutually exclusive, i.e only one label is given to each color, so you should be using PredictionType.CLASSIFICATION
(with only RGB codes in the classes.txt
).
I've just fixed my problems by reducing the number of classes to 7. Thanks for you reply, it help me to clearly understand work flow of the model.
Hi, I have used this code to train a Document Layout Analysis model. I set:
prediction_type = utils.PredictionType.MULTILABEL
And myclasses.txt
(9 classes) file:But I've got an error:
I guess that we can not train a multilabel classification model with more than 7 classes. Can anyone help me to fix this problems? Thanks.