open-mmlab / mmengine

OpenMMLab Foundational Library for Training Deep Learning Models
https://mmengine.readthedocs.io/
Apache License 2.0
1.18k stars 356 forks source link

[Bug] #1514

Open fsbarros98 opened 8 months ago

fsbarros98 commented 8 months ago

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