MultiTask empty label problem #1395
Answered
by
mzr1996
peng-peng0913
asked this question in
Q&A
-
I have been doing MultiTask recently, but I have encountered a problem.
|
Beta Was this translation helpful? Give feedback.
Answered by
mzr1996
Mar 3, 2023
Replies: 1 comment 1 reply
-
Hello, here are two methods:
[{'img_path': xxx1.jpg,
'gt_label': {
'task1': 0,
'task2': 2,
'task3': 1,
}
},
{'img_path': xxx2.jpg,
'gt_label': {
'task2': 1,
'task3': 0,
}
}
...
] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
peng-peng0913
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, here are two methods:
MultiTaskDataset
required format.https://github.com/open-mmlab/mmclassification/blob/654a337d3e93364328044d110b25441d907f4bd6/mmcls/datasets/multi_task.py#L32-L58