Open freaad opened 4 years ago
In my case :
Link512DATA
└── Nukki
└── baidu_V1
├── input
├── target
├── train.txt
└── val.txt
└── baidu_V2
├── input
├── target
├── train.txt
└── val.txt
└── Portrait
I finally figure it out how to make new pickle file. However I still have question. After that, the mask has 1 channel but the result has 2 channel because we have 2 class. The loss face the error because of different channel size. Do you have any idea?
If you use Lovasz loss, the final channel is 1. However, if you use cross-entropy loss, the channel size is 2
Thank you for answering the question. So you mean, if I want to use the Lovasz loss, I should final channel as 1 right? I have set final channel as 1 and the code works well. However I am not so sure that I have done correctly. Also, the paper and code said you try to train edge also and it has better result. Did you try to do this with small object? I am currently trying your code to other dataset. My final purpose is small object segmentation.
@freaad first congratulations, Could you show your codes of how to make pickle files?
@freaad Oh..I am really sorry to late answer. yes change channel size. I guess generally it is possible. but the some small issue is making edge properly. In my code I used morphology operation to generate edge area. I don't know how small about your target objects. I guess proper GT edge region is important
@meanmee If you mean to generate pickle files for dataset, it is included my released code
Which section of code is responsible for generating pickle file?
@aliwaqas333 a quick git grep pickle
or searching the github repo for "pickle" reveals the code responsible
https://github.com/clovaai/ext_portrait_segmentation/search?q=pickle
Hello. Thank you for sharing your code and paper. I am checking your code and there are some confuse what I face. First in the readme file, if I want to use the custom dataset I need to make new pickle file. Could you explain which part of the code should I change? In the train and test config, there is pickle file we need to change. Is it automatically change or should we make this manually. Also in the config there is dataset address we need to change "data_dir": "../../Link512DATA/" is it assume that the structure of folder is below? Link512DATA/ └── Nukki └── baidu_V1 ├── input ├── target ├── train.txt └── val.txt └── baidu_V2 ├── input ├── target ├── train.txt └── val.txt └── Portrait