-
Notifications
You must be signed in to change notification settings - Fork 4
/
train_config.py
71 lines (61 loc) · 2.42 KB
/
train_config.py
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
"""
Expected directory format:
VideoMatte Train/Valid:
├──fgr/
├── 0001/
├── 00000.jpg
├── 00001.jpg
├── pha/
├── 0001/
├── 00000.jpg
├── 00001.jpg
ImageMatte Train/Valid:
├── fgr/
├── sample1.jpg
├── sample2.jpg
├── pha/
├── sample1.jpg
├── sample2.jpg
Background Image Train/Valid
├── sample1.png
├── sample2.png
Background Video Train/Valid
├── 0000/
├── 0000.jpg/
├── 0001.jpg/
"""
DATA_PATHS = {
'videomatte_SD': {
'train': '/cluster/work/cvl/haoqin/datasets/matting-data/VideoMatte240K_JPEG_SD/train',
'valid': '/cluster/work/cvl/haoqin/datasets/matting-data/VideoMatte240K_JPEG_SD/valid',
},
'videomatte_HD': {
'train': '/cluster/work/cvl/haoqin/datasets/matting-data/VideoMatte240K_JPEG_SD/train',
'valid': '/cluster/work/cvl/haoqin/datasets/matting-data/VideoMatte240K_JPEG_SD/valid',
},
'imagematte': {
'train': '/cluster/work/cvl/haoqin/datasets/matting-data/ImageMatte/train',
'valid': '/cluster/work/cvl/haoqin/datasets/matting-data/ImageMatte/valid',
},
'background_images': {
'train': '/cluster/work/cvl/haoqin/datasets/matting-data/Backgrounds/train',
'valid': '/cluster/work/cvl/haoqin/datasets/matting-data/Backgrounds/valid',
},
'background_videos': {
'train': '/cluster/work/cvl/haoqin/datasets/matting-data/BackgroundVideos/train',
'valid': '/cluster/work/cvl/haoqin/datasets/matting-data/BackgroundVideos/valid',
},
'coco_panoptic': {
'imgdir': '/cluster/work/cvl/haoqin/datasets/matting-data/coco/train2017',
'anndir': '/cluster/work/cvl/haoqin/datasets/matting-data/coco/annotations/panoptic_train2017',
'annfile': '/cluster/work/cvl/haoqin/datasets/matting-data/coco/annotations/panoptic_train2017.json',
},
'spd': {
'imgdir': '/cluster/work/cvl/haoqin/datasets/matting-data/SuperviselyPersonDataset/img',
'segdir': '/cluster/work/cvl/haoqin/datasets/matting-data/SuperviselyPersonDataset/seg',
},
'youtubevis': {
'videodir': '/cluster/work/cvl/haoqin/datasets/matting-data/YouTubeVIS/train/JPEGImages',
'annfile': '/cluster/work/cvl/haoqin/datasets/matting-data/YouTubeVIS/train/instances.json',
}
}