Shortcuts

mmagic.datasets.dreambooth_dataset

Module Contents

Classes

DreamBoothDataset

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.

load_data_list() list[source]

Load data list from concept_dir and class_dir.

Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.