Skip to content

TypeError: UnconditionalImageDataset: __init__() got an unexpected keyword argument 'dataset' #455

Answered by LeoXing1996
ljq8866 asked this question in Datasets
Discussion options

You must be logged in to vote

Seems that you use a self-defined config is modified from stylegan3_r_ada_fp16_gamma3.3_metfaces_1024_b4x8 .

In the original config, dataset is defined in https://github.com/open-mmlab/mmgeneration/blob/master/configs/_base_/datasets/ffhq_flip.py

Maybe you remove RepeatDataset from data['train'] but still remain dataset. If you do not want to use RepeatDataset, you can use the following config:

data = dict(
    samples_per_gpu=None,
    workers_per_gpu=4,
    train=dict(type=dataset_type, imgs_root=None, pipeline=train_pipeline)),
    val=dict(type=dataset_type, imgs_root=None, pipeline=val_pipeline))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zengyh1900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #357 on October 12, 2022 11:15.