Hang Zhou commited on
Commit
5b662d1
·
verified ·
1 Parent(s): 9aff0cd

Upload folder using huggingface_hub

Browse files
configs/datasets.yaml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Defaults:
2
+ area_ratio: 0.01171
3
+ obj_thr: 2
4
+
5
+ Train:
6
+ LVIS:
7
+ construct_dataset_dir: 'data/train/LVIS'
8
+ shards: "data/train/LVIS/{00000..00005}.tar"
9
+
10
+ VITONHD:
11
+ construct_dataset_dir: '/data/train/VITONHD'
12
+ shards: "data/train/VITONHD/{00000..00002}.tar"
13
+
14
+ Objects365:
15
+ construct_dataset_dir: 'data/train/Objects365'
16
+ # shards: "data/train/Objects365/{00000..00188}.tar"
17
+ shards: "data/train/Objects365/{00000..00020}.tar"
18
+
19
+ Cityscapes:
20
+ construct_dataset_dir: 'data/train/Cityscapes'
21
+ shards: "data/train/Cityscapes/00000.tar"
22
+
23
+ MapillaryVistas:
24
+ construct_dataset_dir: 'data/train/MapillaryVistas'
25
+ shards: "data/train/MapillaryVistas/00000.tar"
26
+
27
+ BDD100K:
28
+ construct_dataset_dir: 'data/train/BDD100K'
29
+ shards: "data/train/BDD100K/00000.tar"
configs/inference.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ pretrained_model: checkpoints/pics-step=006000_ep18.ckpt
2
+ config_file: configs/pics.yaml
3
+ save_memory: False
configs/pics.yaml ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ model:
2
+ target: cldm.cldm.ControlLDM
3
+ params:
4
+ linear_start: 0.00085
5
+ linear_end: 0.0120
6
+ num_timesteps_cond: 1
7
+ log_every_t: 200
8
+ timesteps: 1000
9
+ first_stage_key: "jpg"
10
+ cond_stage_key: "ref"
11
+ control_key: "hint"
12
+ image_size: 64
13
+ channels: 4
14
+ cond_stage_trainable: false
15
+ conditioning_key: crossattn
16
+ monitor: val/loss_simple_ema
17
+ scale_factor: 0.18215
18
+ use_ema: False
19
+ only_mid_control: False
20
+ obj_thr: 2
21
+
22
+ control_stage_config:
23
+ target: cldm.cldm.ControlNet
24
+ params:
25
+ use_checkpoint: True
26
+ image_size: 32 # unused
27
+ in_channels: 4
28
+ hint_channels: 4
29
+ model_channels: 320
30
+ attention_resolutions: [ 4, 2, 1 ]
31
+ num_res_blocks: 2
32
+ channel_mult: [ 1, 2, 4, 4 ]
33
+ num_head_channels: 64 # need to fix for flash-attn
34
+ use_spatial_transformer: True
35
+ use_linear_in_transformer: True
36
+ transformer_depth: 1
37
+ context_dim: 1024
38
+ legacy: False
39
+
40
+ unet_config:
41
+ target: cldm.cldm.ControlledUnetModel
42
+ params:
43
+ use_checkpoint: True
44
+ image_size: 32 # unused
45
+ in_channels: 4
46
+ out_channels: 4
47
+ model_channels: 320
48
+ attention_resolutions: [ 4, 2, 1 ]
49
+ num_res_blocks: 2
50
+ channel_mult: [ 1, 2, 4, 4 ]
51
+ num_head_channels: 64 # need to fix for flash-attn
52
+ use_spatial_transformer: True
53
+ use_linear_in_transformer: True
54
+ transformer_depth: 1
55
+ context_dim: 1024
56
+ legacy: False
57
+
58
+ first_stage_config:
59
+ target: ldm.models.autoencoder.AutoencoderKL
60
+ params:
61
+ embed_dim: 4
62
+ monitor: val/rec_loss
63
+ ddconfig:
64
+ #attn_type: "vanilla-xformers"
65
+ double_z: true
66
+ z_channels: 4
67
+ resolution: 256
68
+ in_channels: 3
69
+ out_ch: 3
70
+ ch: 128
71
+ ch_mult:
72
+ - 1
73
+ - 2
74
+ - 4
75
+ - 4
76
+ num_res_blocks: 2
77
+ attn_resolutions: []
78
+ dropout: 0.0
79
+ lossconfig:
80
+ target: torch.nn.Identity
81
+
82
+ cond_stage_config:
83
+ target: ldm.modules.encoders.modules.FrozenDinoV2Encoder
84
+ weight: checkpoints/dinov2_vitg14_pretrain.pth
85
+
86
+