Skip to content

How to use MMSelfSup to train a model on my own dataset? #510

Answered by tonysy
tonysy asked this question in How-to
Discussion options

You must be logged in to vote

We provide an example of MAE on my own dataset, which have no labels.

Please use the 1.x branch of MMSelfSup.

The documentation website is: https://mmselfsup.readthedocs.io/en/1.x/
Please follow this documentaion to install the latest version of MMSelfsup

_base_ = [
    '../_base_/models/mae_vit-base-p16.py',
    # '../_base_/datasets/imagenet_mae.py',  # removed
    '../_base_/schedules/adamw_coslr-200e_in1k.py',
    '../_base_/default_runtime.py',
]

#<<<<<<<  modified <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# custom dataset
dataset_type = 'mmcls.CustomDataset'

data_root = 'data/sbu/'
file_client_args = dict(backend='disk')
train_pipeline = [
    dict(type='LoadImageFromFile', file_client_args=f…

Replies: 3 comments 8 replies

Comment options

tonysy
Oct 13, 2022
Maintainer Author

You must be logged in to vote
0 replies
Comment options

tonysy
Oct 18, 2022
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by tonysy
Comment options

You must be logged in to vote
8 replies
@fangyixiao18
Comment options

@thangld201
Comment options

@fangyixiao18
Comment options

@thangld201
Comment options

@fangyixiao18
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How-to
Labels
4 participants