Open wangdefour opened 2 years ago
@hsfzxjy Hello, I have some questions. I run segfix directly using the "offset_semantic. Zip" file. I found that my label must have a corresponding file in "offset_semantic. Zip", as shown in line 83 of segfix.py:
def get_ offset(basename): return io.loadmat(osp.join(offset_dir, basename + '.mat'))['mat'].astype(np.float32).transpose(2, 0, 1) * args.scale
If I want to generate an offset file, I must use the cityscapes format. My data is [0, 255] Does this mean that I need to retrain the offset model?
Segfix corrects minor errors on the boundary as long as the segmentation is reliable for other pixel locations. Therefore, in my view, it is a useless network. The most important issue is how well your segmentation network is generalized. Most segmentation datasets are small and probably large networks like OCR memorize the noise in datasets instead of learning. Instead of Segfix use an active contour segmentation or CRF.
Edit: Grammar
Hi,Do you have instructions for segfix?