mmagic.datasets.dreambooth_dataset
¶
Module Contents¶
Classes¶
Dataset for DreamBooth. |
- class mmagic.datasets.dreambooth_dataset.DreamBoothDataset(data_root: str, concept_dir: str, prompt: str, pipeline: List[Union[dict, Callable]] = [])[source]¶
Bases:
mmengine.dataset.BaseDataset
Dataset for DreamBooth.
- Parameters
data_root (str) – Path to the data root.
concept_dir (str) – Path to the concept images.
prompt (str) – Prompt of the concept.
pipeline (list[dict | callable]) – A sequence of data transforms.