Yaoyi-Li / GCA-Matting

Official repository for Natural Image Matting via Guided Contextual Attention
MIT License
390 stars 62 forks source link

More specific description on train and test datasets #6

Closed lfxx closed 4 years ago

lfxx commented 4 years ago

Thanks for your awesome work.Now i want use my own datasets to train the model.When i am working on making datasets,i am confused on the datasets structure.When i read your code,i find these paths:

train_fg = "/home/liyaoyi/dataset/Adobe/all/fg"
train_alpha = "/home/liyaoyi/dataset/Adobe/all/alpha"
train_bg = "/home/liyaoyi/dataset/coco_bg"
test_merged = "/home/liyaoyi/dataset/Adobe/Combined_Dataset/Test_set/merged"
test_alpha = "/home/liyaoyi/dataset/Adobe/Combined_Dataset/Test_set/alpha_copy"
test_trimap = "/home/liyaoyi/dataset/Adobe/Combined_Dataset/Test_set/trimaps"

What are these paths mean?Could your upload some demo pictures to make these clearer?Hope for your kindly reply!@Yaoyi-Li

Yaoyi-Li commented 4 years ago

These are folders of the foreground image, background image, alpha (ground truth), merged image and trimap. You can just follow the data structure of Adobe Image Matting Dataset to create your own dataset.

xiezhang666 commented 4 years ago

hi, Thanks for your reply. I have one more question similar to lfxx.
How to produce files in directory test_merged ( test_merged = "/home/liyaoyi/dataset/Adobe/Combined_Dataset/Test_set/merged" ). Could you share shell script as the way that you dealt with copy_testing_alpha.sh. Hope for your kindly reply!@Yaoyi-Li