mmrazor icon indicating copy to clipboard operation
mmrazor copied to clipboard

How to train supernet on my own dataset?

Open JiuTMniJiaoXiaLuo opened this issue 3 years ago • 6 comments

Checklist

  • I have searched related issues but cannot get the expected help.
  • I have read related documents and don't know what to do.

Describe the question you meet

Most of the existing datasets that can train supernet are ImageNet and CIFAR.What configs files should be modified in order to replace them with other datasets?

Post related information

f2118c77321dd07a0b744a79f677508

JiuTMniJiaoXiaLuo avatar Aug 17 '22 08:08 JiuTMniJiaoXiaLuo

Hi, @JiuTMniJiaoXiaLuo , thank you for your interests.

As for your question, please refer to the mmcls document.

pprp avatar Aug 17 '22 08:08 pprp

Hi, @JiuTMniJiaoXiaLuo , thank you for your interests.

As for your question, please refer to the mmcls document.

Thank you for your reply,but after I created my dataset according to the steps, a new problem occurred. 1660743667127

JiuTMniJiaoXiaLuo avatar Aug 17 '22 13:08 JiuTMniJiaoXiaLuo

Hi, @JiuTMniJiaoXiaLuo

You can refer to the similar issue: https://github.com/open-mmlab/mmtracking/issues/539

pprp avatar Aug 18 '22 01:08 pprp

Hi, @JiuTMniJiaoXiaLuo

You can refer to the similar issue: open-mmlab/mmtracking#539 Thank you for helping me, but I didn't understand. Which parameter did they delete and where did they delete it ?

JiuTMniJiaoXiaLuo avatar Aug 18 '22 02:08 JiuTMniJiaoXiaLuo

Hi, @JiuTMniJiaoXiaLuo , I think they delete the file_client_args parameter.

Maybe the train_pipeline in your config is like this:

train_pipeline = [
    dict(type='LoadImageFromFile', file_client_args=file_client_args),
    ...
]

You can change to:

train_pipeline = [
    dict(type='LoadImageFromFile'),
    ...
]

pprp avatar Aug 18 '22 02:08 pprp

Hi, @JiuTMniJiaoXiaLuo , I think they delete the file_client_args parameter.

Maybe the train_pipeline in your config is like this:

train_pipeline = [
    dict(type='LoadImageFromFile', file_client_args=file_client_args),
    ...
]

You can change to:

train_pipeline = [
    dict(type='LoadImageFromFile'),
    ...
]

Thank you very much!

JiuTMniJiaoXiaLuo avatar Aug 20 '22 01:08 JiuTMniJiaoXiaLuo