train_config.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. """
  2. Expected directory format:
  3. VideoMatte Train/Valid:
  4. ├──fgr/
  5. ├── 0001/
  6. ├── 00000.jpg
  7. ├── 00001.jpg
  8. ├── pha/
  9. ├── 0001/
  10. ├── 00000.jpg
  11. ├── 00001.jpg
  12. ImageMatte Train/Valid:
  13. ├── fgr/
  14. ├── sample1.jpg
  15. ├── sample2.jpg
  16. ├── pha/
  17. ├── sample1.jpg
  18. ├── sample2.jpg
  19. Background Image Train/Valid
  20. ├── sample1.png
  21. ├── sample2.png
  22. Background Video Train/Valid
  23. ├── 0000/
  24. ├── 0000.jpg/
  25. ├── 0001.jpg/
  26. """
  27. DATA_PATHS = {
  28. 'videomatte': {
  29. 'train': '../matting-data/VideoMatte240K_JPEG_SD/train',
  30. 'valid': '../matting-data/VideoMatte240K_JPEG_SD/valid',
  31. },
  32. 'imagematte': {
  33. 'train': '../matting-data/ImageMatte/train',
  34. 'valid': '../matting-data/ImageMatte/valid',
  35. },
  36. 'background_images': {
  37. 'train': '../matting-data/Backgrounds/train',
  38. 'valid': '../matting-data/Backgrounds/valid',
  39. },
  40. 'background_videos': {
  41. 'train': '../matting-data/BackgroundVideos/train',
  42. 'valid': '../matting-data/BackgroundVideos/valid',
  43. },
  44. 'coco_panoptic': {
  45. 'imgdir': '../matting-data/coco/train2017/',
  46. 'anndir': '../matting-data/coco/panoptic_train2017/',
  47. 'annfile': '../matting-data/coco/annotations/panoptic_train2017.json',
  48. },
  49. 'spd': {
  50. 'imgdir': '../matting-data/SuperviselyPersonDataset/img',
  51. 'segdir': '../matting-data/SuperviselyPersonDataset/seg',
  52. },
  53. 'youtubevis': {
  54. 'videodir': '../matting-data/YouTubeVIS/train/JPEGImages',
  55. 'annfile': '../matting-data/YouTubeVIS/train/instances.json',
  56. }
  57. }