You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed this issue while implementing multitarget classification in #245 .
At the moment, training a multitarget classification MODNetModel with a single output vector targets like this: [[["cl_target_0","cl_target_1"]]]
will only train on the first target and discard the others.
First, in the build_model method, the output shape is set to (None, num_classes[group[prop_idx][0]]) instead of (None, sum([v for k, v in num_classes.items() if k in group[prop_idx]])).
Hi, I noticed this issue while implementing multitarget classification in #245 .
At the moment, training a multitarget classification
MODNetModel
with a single output vectortargets
like this:[[["cl_target_0","cl_target_1"]]]
will only train on the first target and discard the others.
First, in the
build_model
method, the output shape is set to(None, num_classes[group[prop_idx][0]])
instead of(None, sum([v for k, v in num_classes.items() if k in group[prop_idx]]))
.modnet/modnet/models/vanilla.py
Lines 196 to 209 in 7ee7d8b
In the
fit
method, only the first target is converted toy
.modnet/modnet/models/vanilla.py
Lines 347 to 360 in 7ee7d8b
I'd either correct this or add in the documentation that multitarget classification should be done with separate output layers.
The text was updated successfully, but these errors were encountered: