data_path.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. """
  2. This file records the directory paths to the different datasets.
  3. You will need to configure it for training the model.
  4. All datasets follows the following format, where fgr and pha points to directory that contains jpg or png.
  5. Inside the directory could be any nested formats, but fgr and pha structure must match. You can add your own
  6. dataset to the list as long as it follows the format. 'fgr' should point to foreground images with RGB channels,
  7. 'pha' should point to alpha images with only 1 grey channel.
  8. {
  9. 'YOUR_DATASET': {
  10. 'train': {
  11. 'fgr': 'PATH_TO_IMAGES_DIR',
  12. 'pha': 'PATH_TO_IMAGES_DIR',
  13. },
  14. 'valid': {
  15. 'fgr': 'PATH_TO_IMAGES_DIR',
  16. 'pha': 'PATH_TO_IMAGES_DIR',
  17. }
  18. }
  19. }
  20. """
  21. DATA_PATH = {
  22. 'videomatte240k': {
  23. 'train': {
  24. 'fgr': 'PATH_TO_IMAGES_DIR',
  25. 'pha': 'PATH_TO_IMAGES_DIR'
  26. },
  27. 'valid': {
  28. 'fgr': 'PATH_TO_IMAGES_DIR',
  29. 'pha': 'PATH_TO_IMAGES_DIR'
  30. }
  31. },
  32. 'photomatte13k': {
  33. 'train': {
  34. 'fgr': 'PATH_TO_IMAGES_DIR',
  35. 'pha': 'PATH_TO_IMAGES_DIR'
  36. },
  37. 'valid': {
  38. 'fgr': 'PATH_TO_IMAGES_DIR',
  39. 'pha': 'PATH_TO_IMAGES_DIR'
  40. }
  41. },
  42. 'distinction': {
  43. 'train': {
  44. 'fgr': 'PATH_TO_IMAGES_DIR',
  45. 'pha': 'PATH_TO_IMAGES_DIR',
  46. },
  47. 'valid': {
  48. 'fgr': 'PATH_TO_IMAGES_DIR',
  49. 'pha': 'PATH_TO_IMAGES_DIR'
  50. },
  51. },
  52. 'adobe': {
  53. 'train': {
  54. 'fgr': 'PATH_TO_IMAGES_DIR',
  55. 'pha': 'PATH_TO_IMAGES_DIR',
  56. },
  57. 'valid': {
  58. 'fgr': 'PATH_TO_IMAGES_DIR',
  59. 'pha': 'PATH_TO_IMAGES_DIR'
  60. },
  61. },
  62. 'backgrounds': {
  63. 'train': 'PATH_TO_IMAGES_DIR',
  64. 'valid': 'PATH_TO_IMAGES_DIR'
  65. },
  66. }