forked from PeterL1n/RobustVideoMatting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
train_config.py
68 lines (57 loc) · 1.74 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
"""
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': {
'train': '../matting-data/VideoMatte240K_JPEG_SD/train',
'valid': '../matting-data/VideoMatte240K_JPEG_SD/valid',
},
'imagematte': {
'train': '../matting-data/ImageMatte/train',
'valid': '../matting-data/ImageMatte/valid',
},
'background_images': {
'train': '../matting-data/Backgrounds/train',
'valid': '../matting-data/Backgrounds/valid',
},
'background_videos': {
'train': '../matting-data/BackgroundVideos/train',
'valid': '../matting-data/BackgroundVideos/valid',
},
'coco_panoptic': {
'imgdir': '../matting-data/coco/train2017/',
'anndir': '../matting-data/coco/panoptic_train2017/',
'annfile': '../matting-data/coco/annotations/panoptic_train2017.json',
},
'spd': {
'imgdir': '../matting-data/SuperviselyPersonDataset/img',
'segdir': '../matting-data/SuperviselyPersonDataset/seg',
},
'youtubevis': {
'videodir': '../matting-data/YouTubeVIS/train/JPEGImages',
'annfile': '../matting-data/YouTubeVIS/train/instances.json',
}
}