-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathbase_dataset.yaml
More file actions
32 lines (29 loc) · 1.11 KB
/
Copy pathbase_dataset.yaml
File metadata and controls
32 lines (29 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
data:
dataset1:
_target_: hcpdiff.data.TextImagePairDataset
_partial_: True # Not directly instantiate the object here. There are other parameters to be added in the runtime.
batch_size: 4
cache_latents: True
att_mask_encode: False
loss_weight: 1.0
source:
data_source1:
_target_: hcpdiff.data.source.Text2ImageAttMapSource
img_root: 'imgs/'
prompt_template: 'prompt_tuning_template/object.txt'
caption_file: null # path to image captions (file_words)
att_mask: null
bg_color: [ 255, 255, 255 ] # RGB; for ARGB -> RGB
word_names: {}
text_transforms:
_target_: torchvision.transforms.Compose
transforms:
- _target_: hcpdiff.utils.caption_tools.TagShuffle
- _target_: hcpdiff.utils.caption_tools.TagDropout
p: 0.1
- _target_: hcpdiff.utils.caption_tools.TemplateFill
word_names: ${....word_names}
bucket:
_target_: hcpdiff.data.bucket.RatioBucket.from_files # aspect ratio bucket
target_area: ${hcp.eval:"512*512"}
num_bucket: 5