mmedit.datasets.dreambooth_dataset¶
Module Contents¶
Classes¶
Dataset for DreamBooth. |
- class mmedit.datasets.dreambooth_dataset.DreamBoothDataset(data_root: str, concept_dir: str, prompt: str, pipeline: List[Union[dict, Callable]] = [])[源代码]¶
Bases:
mmengine.dataset.BaseDatasetDataset for DreamBooth.
- 参数
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.