open-mmlab/mmengine

[Bug]

Opened this issue · 0 comments

Prerequisite

Environment

While running mmagic experiments, if datapreprocessor is set to None, BaseDataPreprocessor will not have a destruct method needed to run the forward method for generative models

Reproduces the problem - code sample

Running train with no defined data preprocessor

Reproduces the problem - command or script

python train.py config_file.py

Reproduces the problem - error message

AttributeError: 'BaseDataPreprocessor' object has no attribute 'destruct'

Additional information

No response